]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
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 7f647de61af0cb600dc5422bff9ebc6c18c32a35..fbfb960f1b455f9145c8bf320e1be53c84f503bc 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):