Simplify the should_do_weapon_stats function.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 9 Feb 2017 00:05:49 +0000 (19:05 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 9 Feb 2017 00:05:49 +0000 (19:05 -0500)
xonstat/views/submission.py

index 7f647de..fbfb960 100644 (file)
@@ -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):