소스 검색

Merge branch 'forecast-chart' of github.com:polscm32/Open-iAPS into forecast-chart

Deniz Cengiz 1 년 전
부모
커밋
8dfccbacdc
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 {