Преглед изворни кода

attempt to fix gradient in glucose-chart in treatments view

polscm32 пре 1 година
родитељ
комит
31dd042673
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

+ 2 - 2
FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

@@ -577,10 +577,10 @@ extension Bolus.StateModel {
         let results = await CoreDataStack.shared.fetchEntitiesAsync(
             ofType: GlucoseStored.self,
             onContext: backgroundContext,
-            predicate: NSPredicate.predicateForFourHoursAgo,
+            predicate: NSPredicate.glucose,
             key: "date",
             ascending: false,
-            fetchLimit: 48
+            fetchLimit: 288
         )
 
         return await backgroundContext.perform {