]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/models/game.py
Add mappings for the player_game_frag_matrix table.
[xonotic/xonstat.git] / xonstat / models / game.py
index 18cf9e8dc6be5f9839211d7a779aaec52623cebb..e9cf29cf8b11c16ba959853591f99a7bdb07f5c9 100644 (file)
@@ -191,4 +191,17 @@ class Weapon(object):
             'weapon_cd': self.weapon_cd,
             'name': self.descr,
             'active': self.active_ind,
-        }
\ No newline at end of file
+        }
+
+
+class PlayerGameFragMatrix(object):
+    """
+    Frags made by an individual player in a single game.
+    """
+
+    def __init__(self, game_id, player_game_stat_id):
+        self.game_id = game_id
+        self.player_game_stat_id = player_game_stat_id
+
+    def __repr__(self):
+        return "<PlayerGameFragMatrix({0.game_id}, {0.player_game_stat_id})>".format(self)