Browse Source

fix passing of CurrentTemp to oref

Robert 1 year ago
parent
commit
443060f6cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Model/Helper/PumpEvent+helper.swift

+ 1 - 1
Model/Helper/PumpEvent+helper.swift

@@ -97,7 +97,7 @@ extension NSPredicate {
     static var recentPumpHistory: NSPredicate {
     static var recentPumpHistory: NSPredicate {
         let date = Date.twentyMinutesAgo
         let date = Date.twentyMinutesAgo
         return NSPredicate(
         return NSPredicate(
-            format: "type == %@ AND timestamp <= %@",
+            format: "type == %@ AND timestamp >= %@",
             PumpEventStored.EventType.tempBasal.rawValue,
             PumpEventStored.EventType.tempBasal.rawValue,
             date as NSDate
             date as NSDate
         )
         )