cumulative test trial

This commit is contained in:
Michael Simard
2020-06-16 12:06:10 -05:00
parent 8dd189bf51
commit eabf387b08
2 changed files with 118 additions and 102 deletions

View File

@@ -62,20 +62,20 @@ final class AllRollingStats: Content {
var cumulativeStats:[DailyStats]
}
final class DailyStats: Content {
var day: String
var month:String
var year: String
var cumulativeRatio:String
var stats:Stats
init(day:Int, month:Int, year:Int, stats:Stats) {
init(day:Int, month:Int, year:Int, stats:Stats, cumulativeRatio:String) {
self.day = String(day)
self.month = Utilities.monthToString(month: month)
self.year = String(year)
self.stats = stats
self.cumulativeRatio = cumulativeRatio
}
}