speed update, new table for cached stats

This commit is contained in:
Michael Simard
2021-08-04 16:32:17 -05:00
parent c38b621bdd
commit bc0dc93e9e
11 changed files with 485 additions and 139 deletions

View File

@@ -41,26 +41,35 @@ final class AllStats: Content {
}
}
final class OverallStats: Content {
var overall:StatsWithMostRecentDailyRecord
var mwStats:StatsWithMostRecentDailyRecord
var bocwStats:StatsWithMostRecentDailyRecord
var mostRecentRecord:String
final class DashboardStats: Content {
var dashboardItems:[DashboardItem] = []
init(dashboardItems:[DashboardItem] ){
self.dashboardItems = dashboardItems
}
}
var statsWithHyder:Stats
var statsWithoutHyder:Stats
final class OverallStats: Content {
// var overall:StatsWithMostRecentDailyRecord
// var mwStats:StatsWithMostRecentDailyRecord
// var bocwStats:StatsWithMostRecentDailyRecord
// var mostRecentRecord:String
// var statsWithHyder:Stats
// var statsWithoutHyder:Stats
var dashboardItems:[DashboardItem] = []
init( overall:StatsWithMostRecentDailyRecord, mwStats:StatsWithMostRecentDailyRecord, bocwStats:StatsWithMostRecentDailyRecord, mostRecentRecord:String, statsWithHyder:Stats, statsWithoutHyder:Stats, dashboardItems:[DashboardItem]){
init(dashboardItems:[DashboardItem]){
self.overall = overall
self.mwStats = mwStats;
self.bocwStats = bocwStats;
self.mostRecentRecord = mostRecentRecord
// self.overall = overall
// self.mwStats = mwStats;
// self.bocwStats = bocwStats;
// self.mostRecentRecord = mostRecentRecord
self.statsWithHyder = statsWithHyder
self.statsWithoutHyder = statsWithoutHyder
// self.statsWithHyder = statsWithHyder
// self.statsWithoutHyder = statsWithoutHyder
self.dashboardItems = dashboardItems
}