From: Ant Zucaro Date: Tue, 19 Sep 2017 20:11:37 +0000 (-0400) Subject: Fix for scoreboard-scores being float values. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7c76a3df34755d10ea82d4c150b7c475e2c270b9;p=xonotic%2Fxonstat.git Fix for scoreboard-scores being float values. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 1b6e5fe..b4059e5 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -149,7 +149,7 @@ class Submission(object): if sub_key.endswith("cnt-fired"): player_fired_weapon = True self.add_weapon_fired(sub_key) - elif sub_key == 'scoreboard-score' and int(sub_value) != 0: + elif sub_key == 'scoreboard-score' and int(round(float(sub_value))) != 0: player_nonzero_score = True elif sub_key == 'scoreboard-fastest': player_fastest = True