From: Ant Zucaro Date: Sat, 4 Feb 2017 16:41:28 +0000 (-0500) Subject: Parse the sub-value, not the full value. X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=8c45f44f079fd694d7410fa8cd2683b6341ee6b5;p=xonotic%2Fxonstat.git Parse the sub-value, not the full value. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 20e20f9..40f735d 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -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