From: Ant Zucaro Date: Thu, 19 May 2011 01:47:19 +0000 (-0400) Subject: Register a t event under the P record instead of once per team. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5738ef0f031423eb73ce0a21651a06eabfca8de0;p=xonotic%2Fxonstat.git Register a t event under the P record instead of once per team. --- diff --git a/xonstat/views.py b/xonstat/views.py index 2f0d531..3c1e0e4 100755 --- a/xonstat/views.py +++ b/xonstat/views.py @@ -385,9 +385,6 @@ def parse_body(request): if key in 'V' 'T' 'G' 'M' 'S' 'C' 'R' 'W': game_meta[key] = value - if key == 't': - current_team = value - if key == 'P': # if we were working on a player record already, append # it and work on a new one (only set team info) @@ -396,13 +393,14 @@ def parse_body(request): player_events = {'t':current_team} player_events[key] = value - + if key == 'e': (subkey, subvalue) = value.split(' ', 1) player_events[subkey] = subvalue - if key == 'n': player_events[key] = value + if key == 't': + player_events[key] = value except: # no key/value pair - move on to the next line pass