]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add all the other attributes of the table to the object.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 3 Oct 2017 00:59:21 +0000 (20:59 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 3 Oct 2017 00:59:21 +0000 (20:59 -0400)
xonstat/models/game.py

index e9cf29cf8b11c16ba959853591f99a7bdb07f5c9..8d6640e39d09681778f2f72f2c3b6ff7de4774b1 100644 (file)
@@ -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 "<PlayerGameFragMatrix({0.game_id}, {0.player_game_stat_id})>".format(self)