diff --git a/adoptium-api-v3-persistence/src/main/kotlin/net/adoptium/api/v3/DownloadStatsInterface.kt b/adoptium-api-v3-persistence/src/main/kotlin/net/adoptium/api/v3/DownloadStatsInterface.kt index dcd10fcc7..d563d92cd 100644 --- a/adoptium-api-v3-persistence/src/main/kotlin/net/adoptium/api/v3/DownloadStatsInterface.kt +++ b/adoptium-api-v3-persistence/src/main/kotlin/net/adoptium/api/v3/DownloadStatsInterface.kt @@ -54,8 +54,7 @@ class DownloadStatsInterface { // need +1 as for a diff you need num days +1 from db (days ?: 30) + 1 } - - val daysSince = (days ?: 30) + 1 + val statsSource = source ?: StatsSource.all val periodEnd = to ?: TimeSource.now()