From: Ant Zucaro Date: Tue, 3 Oct 2017 00:59:21 +0000 (-0400) Subject: Add all the other attributes of the table to the object. X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=21d2cd0226364323671fa283675f388a06949b25;hp=2416f28b89e994760fef7c1f70191d1a814ec9d5 Add all the other attributes of the table to the object. --- diff --git a/xonstat/models/game.py b/xonstat/models/game.py index e9cf29c..8d6640e 100644 --- a/xonstat/models/game.py +++ b/xonstat/models/game.py @@ -199,9 +199,12 @@ class PlayerGameFragMatrix(object): Frags made by an individual player in a single game. """ - def __init__(self, game_id, player_game_stat_id): + def __init__(self, game_id, player_game_stat_id, player_id, player_index, matrix): self.game_id = game_id self.player_game_stat_id = player_game_stat_id + self.player_id = player_id + self.player_index = player_index + self.matrix = matrix def __repr__(self): return "".format(self)