From 7c76a3df34755d10ea82d4c150b7c475e2c270b9 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 19 Sep 2017 16:11:37 -0400 Subject: [PATCH] Fix for scoreboard-scores being float values. --- xonstat/views/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2