implement last game for db

This commit is contained in:
Yannik Schmidt
2020-09-28 06:03:08 +02:00
parent 9d0e6440de
commit 39a5a89ccc
2 changed files with 8 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ class Round:
### Sync players from Databse ###
for p in self.winners + self.losers:
playerInDB = db.getOrCreatePlayer(p)
playerInDB = db.getOrCreatePlayer(p, startTime)
p.rating = playerInDB.rating
self.prediction, self.confidence = ts.predictOutcome(self.winners, self.losers)