|
@@ -1050,17 +1050,14 @@ final class BaseAPSManager: APSManager, Injectable {
|
|
|
let glucose24h = try await fetchGlucose(predicate: NSPredicate.predicateForOneDayAgo, fetchLimit: 288, batchSize: 50)
|
|
let glucose24h = try await fetchGlucose(predicate: NSPredicate.predicateForOneDayAgo, fetchLimit: 288, batchSize: 50)
|
|
|
let glucoseOneWeek = try await fetchGlucose(
|
|
let glucoseOneWeek = try await fetchGlucose(
|
|
|
predicate: NSPredicate.predicateForOneWeek,
|
|
predicate: NSPredicate.predicateForOneWeek,
|
|
|
- fetchLimit: 288 * 7,
|
|
|
|
|
batchSize: 250
|
|
batchSize: 250
|
|
|
)
|
|
)
|
|
|
let glucoseOneMonth = try await fetchGlucose(
|
|
let glucoseOneMonth = try await fetchGlucose(
|
|
|
predicate: NSPredicate.predicateForOneMonth,
|
|
predicate: NSPredicate.predicateForOneMonth,
|
|
|
- fetchLimit: 288 * 7 * 30,
|
|
|
|
|
batchSize: 500
|
|
batchSize: 500
|
|
|
)
|
|
)
|
|
|
let glucoseThreeMonths = try await fetchGlucose(
|
|
let glucoseThreeMonths = try await fetchGlucose(
|
|
|
predicate: NSPredicate.predicateForThreeMonths,
|
|
predicate: NSPredicate.predicateForThreeMonths,
|
|
|
- fetchLimit: 288 * 7 * 30 * 3,
|
|
|
|
|
batchSize: 1000
|
|
batchSize: 1000
|
|
|
)
|
|
)
|
|
|
|
|
|