active_servers_table = metadata.tables['active_servers_mv']
active_maps_table = metadata.tables['active_maps_mv']
player_medals_table = metadata.tables['player_medals']
+ player_game_frag_matrix_table = metadata.tables['player_game_frag_matrix']
# Map the tables and the objects together
mapper(PlayerAchievement, achievements_table)
mapper(ActiveServer, active_servers_table)
mapper(ActiveMap, active_maps_table)
mapper(PlayerMedal, player_medals_table)
+ mapper(PlayerGameFragMatrix, player_game_frag_matrix_table)
'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)