]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Fix for scoreboard-scores being float values. score-float-conversion
authorAnt Zucaro <azucaro@gmail.com>
Tue, 19 Sep 2017 20:11:37 +0000 (16:11 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 19 Sep 2017 20:11:37 +0000 (16:11 -0400)
xonstat/views/submission.py

index 1b6e5fe0ad80462fb1f306ec1e4ee7fffdb069c5..b4059e5ad06c2bbe3863587c7b3499ed0f5521b1 100644 (file)
@@ -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