From: Ant Zucaro Date: Thu, 9 Feb 2017 00:05:49 +0000 (-0500) Subject: Simplify the should_do_weapon_stats function. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11483abc82d6f88bc8dcc91f951fbeb65286e71e;p=xonotic%2Fxonstat.git Simplify the should_do_weapon_stats function. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 7f647de..fbfb960 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -408,10 +408,7 @@ def num_real_players(player_events): def should_do_weapon_stats(game_type_cd): """True of the game type should record weapon stats. False otherwise.""" - if game_type_cd in 'cts': - return False - else: - return True + return game_type_cd not in 'CTS' def gametype_elo_eligible(game_type_cd):