]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
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 20e20f95325b0dd305721d4f64f0e454ddfb9789..40f735d01e99395548ce9834f53d45a0782699b9 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