]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Change definition of a blank game.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 22 Dec 2011 17:30:50 +0000 (12:30 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 22 Dec 2011 17:30:50 +0000 (12:30 -0500)
xonstat/views/submission.py

index f07194202342d2050b4bfd0d618595db5b5dcf93..0d2150a81a701c37061bac6f33c956cec62ac004 100755 (executable)
@@ -23,6 +23,7 @@ def is_blank_game(players):
     2) a match in which no player made a positive or negative score AND was\r
     on the scoreboard\r
     """\r
+    r = re.compile(r'acc-.*-cnt-fired')\r
     flg_nonzero_score = False\r
     flg_acc_events = False\r
 \r
@@ -31,7 +32,7 @@ def is_blank_game(players):
             for (key,value) in events.items():\r
                 if key == 'scoreboard-score' and value != '0':\r
                     flg_nonzero_score = True\r
-                if key.startswith('acc-'):\r
+                if r.search(key):\r
                     flg_acc_events = True\r
 \r
     return not (flg_nonzero_score and flg_acc_events)\r