duration = duration,\r
mod = game_meta.get('O', None))\r
\r
+ # keep track of the players we've seen\r
+ player_ids = []\r
for events in raw_players:\r
player = get_or_create_player(\r
session = session,\r
if player.player_id > 1:\r
anticheats = create_anticheats(session, pgstat, game, player,\r
events)\r
+ player_ids.append(player.player_id)\r
\r
if should_do_weapon_stats(game_type_cd) and player.player_id > 1:\r
pwstats = create_weapon_stats(session, game_meta, game, player,\r
pgstat, events)\r
\r
+ # store them on games for easy access\r
+ game.players = player_ids\r
+\r
for events in raw_teams:\r
try:\r
teamstat = create_team_stat(session, game, events)\r