implement basic db support for player stats

This commit is contained in:
Yannik Schmidt
2020-09-26 23:55:53 +02:00
parent 34e9a4dbf6
commit 3f3e137fda
3 changed files with 125 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ class PlayerInLeaderboard:
self.games = int(games)
self.wins = int(wins)
self.loses = self.games - self.wins
self.rank = None
# determine winratio #
if self.games == 0: