From 11483abc82d6f88bc8dcc91f951fbeb65286e71e Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 8 Feb 2017 19:05:49 -0500 Subject: [PATCH] Simplify the should_do_weapon_stats function. --- xonstat/views/submission.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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): -- 2.39.2