[git fast commit] 10. Feb 2019 - 11:55:03

This commit is contained in:
Yannik Schmidt
2019-02-10 11:55:03 +01:00
parent 41ecc1f1aa
commit da92eedf74
4 changed files with 17 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ class PlayerInRound(Player):
return PlayerInRound(steamid, name, team, active_time)
class PlayerForDatabase(Player):
def __init__(self,steamid,name,rating,player=None):
def __init__(self,steamid, name, rating, lastUpdate=None, player=None):
if player:
self.steamid = player.steamid
self.name = player.name
@@ -71,6 +71,7 @@ class PlayerForDatabase(Player):
self.steamid = steamid
self.name = name
self.rating = rating
self.lastUpdate = lastUpdate
self.games = 0
self.wins = 0
def winratio(self):