react-native-mytatva-rn-sdk 1.2.63 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -420,12 +420,19 @@ class FinalViewModel: NSObject {
|
|
|
420
420
|
let batch = batches[index]
|
|
421
421
|
|
|
422
422
|
// Filter out data where gluADC is 0
|
|
423
|
+
// let filteredBatch = batch.filter {
|
|
424
|
+
// if let gluADC = $0.gluADC as? Int {
|
|
425
|
+
// return gluADC != 0
|
|
426
|
+
// }
|
|
427
|
+
// return false
|
|
428
|
+
// }
|
|
429
|
+
|
|
423
430
|
let filteredBatch = batch.filter {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
return false
|
|
431
|
+
let gluADCValue = ($0.gluADC as? Int) ?? 0
|
|
432
|
+
let isDeleteValue = ($0.isDelete as? Int) ?? 0
|
|
433
|
+
return gluADCValue != 0 && isDeleteValue == 0
|
|
428
434
|
}
|
|
435
|
+
|
|
429
436
|
|
|
430
437
|
let cgmLogs = filteredBatch.map { ReceiveDataToLog(data: $0) }
|
|
431
438
|
let payload = Payload(logs: cgmLogs)
|