Просмотр исходного кода

Fix the stale glucose do nothing case

Sam King 5 месяцев назад
Родитель
Сommit
45b77f2263

+ 2 - 2
Trio/Sources/APS/OpenAPSSwift/DetermineBasal/DetermineBasalGenerator.swift

@@ -662,8 +662,8 @@ enum DeterminationGenerator {
                 insulinReq: nil,
                 eventualBG: nil,
                 sensitivityRatio: nil,
-                rate: currentTemp.rate,
-                duration: Decimal(currentTemp.duration),
+                rate: nil,
+                duration: nil,
                 iob: nil,
                 cob: nil,
                 predictions: nil,

+ 1 - 1
TrioTests/OpenAPSSwiftTests/DetermineBasalJsonTests.swift

@@ -103,7 +103,7 @@ import Testing
         // this test is meant for one-off analysis so it's ok to hard code
         // a file, just make sure to _not_ check in updates to this to
         // avoid polluting our change logs
-        let algorithmComparison = try await HttpFiles.downloadFile(at: "/files/dc9ebaee-a256-435a-8a2a-dcd2abbd9462.0.json")
+        let algorithmComparison = try await HttpFiles.downloadFile(at: "/files/711a7571-ab38-4b36-ab6a-6edbec3fc54f.3.json")
         let determineBasalInput = algorithmComparison.determineBasalInput!
 
         let encoder = JSONCoding.encoder