Faster stat processing

This commit is contained in:
Michael Simard
2020-11-16 07:48:21 -06:00
parent aeb6b16afb
commit 8d94b42439
6 changed files with 213 additions and 38 deletions

View File

@@ -22,16 +22,19 @@ final class Match: Model, Content {
@Field(key: "roundsLost")
var roundsLost: Int?
@Field(key: "codGame")
var codGame: String
init() { }
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?) {
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?, codGame:String) {
self.id = id
self.map = map
self.win = win
self.date = date
self.roundsWon = roundsWon
self.roundsLost = roundsLost
self.codGame = codGame;
}
}