implement round->sql support

This commit is contained in:
Yannik Schmidt
2020-06-20 14:24:47 +02:00
parent 31ecac6009
commit 6513451b83
4 changed files with 29 additions and 1 deletions

View File

@@ -34,6 +34,15 @@ class PlayerInRound(Player):
self.is_fake = is_fake
self.timestamp = timestamp
def toJson(self):
retDict = { "name" : self.name,
"id" : self.id,
"active_time" : self.activeTime.total_seconds(),
"timestamp" : self.timestamp.timestamp(),
"team" : self.team
}
return retDict
def __str__(self):
return "PlayerInRound: N: {} ID: {} Team: {}".format(self.name, self.id, self.team)