Parse the sub-value, not the full value.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 4 Feb 2017 16:41:28 +0000 (11:41 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 4 Feb 2017 16:41:28 +0000 (11:41 -0500)
xonstat/views/submission.py

index 20e20f9..40f735d 100644 (file)
@@ -155,7 +155,7 @@ class Submission(object):
                 if sub_key.endswith("cnt-fired"):
                     player_fired_weapon = True
                     self.check_for_new_weapon_fired(sub_key)
-                elif sub_key == 'scoreboard-score' and int(value) != 0:
+                elif sub_key == 'scoreboard-score' and int(sub_value) != 0:
                     player_nonzero_score = True
                 elif sub_key == 'scoreboard-fastest':
                     player_fastest = True