From 3bab4cbd8feb1bd8ecc1daa9f8fc9eec667b0d23 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 12 Dec 2014 23:11:21 -0500 Subject: [PATCH] Isolate the weapon rename to the weapon_cd only. --- xonstat/views/submission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index dc5fa03..0690182 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -760,7 +760,7 @@ def create_weapon_stats(session, game_meta, game, player, pgstat, events): # Weapon names changed for 0.8. We'll convert the old # ones to use the new scheme as well. - weapon_cd = weapon_map.get(weapon_cd, weapon_cd) + mapped_weapon_cd = weapon_map.get(weapon_cd, weapon_cd) seq = Sequence('player_weapon_stats_player_weapon_stats_id_seq') pwstat_id = session.execute(seq) @@ -769,7 +769,7 @@ def create_weapon_stats(session, game_meta, game, player, pgstat, events): pwstat.player_id = player.player_id pwstat.game_id = game.game_id pwstat.player_game_stat_id = pgstat.player_game_stat_id - pwstat.weapon_cd = weapon_cd + pwstat.weapon_cd = mapped_weapon_cd if 'n' in events: pwstat.nick = events['n'] -- 2.39.2