From: Ant Zucaro Date: Thu, 22 Dec 2011 17:30:50 +0000 (-0500) Subject: Change definition of a blank game. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61eb7feebe597bd673dc8f0cb50d5d0b0b4edf57;p=xonotic%2Fxonstat.git Change definition of a blank game. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index f071942..0d2150a 100755 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -23,6 +23,7 @@ def is_blank_game(players): 2) a match in which no player made a positive or negative score AND was on the scoreboard """ + r = re.compile(r'acc-.*-cnt-fired') flg_nonzero_score = False flg_acc_events = False @@ -31,7 +32,7 @@ def is_blank_game(players): for (key,value) in events.items(): if key == 'scoreboard-score' and value != '0': flg_nonzero_score = True - if key.startswith('acc-'): + if r.search(key): flg_acc_events = True return not (flg_nonzero_score and flg_acc_events)