]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
KA is another mode similar to the others. win-percentage
authorAnt Zucaro <azucaro@gmail.com>
Tue, 25 Sep 2018 10:57:53 +0000 (06:57 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 25 Sep 2018 10:57:53 +0000 (06:57 -0400)
xonstat/views/player.py

index e0b969557c42ba60fc65255792a6acdd10a5a589..2fb716c226d97071bc67f715b84e9477cb711609 100644 (file)
@@ -105,8 +105,8 @@ def get_games_played(player_id):
         games = row.wins + row.losses
         overall_games += games
 
-        # DM and CTS don't really have "winners"
-        if row.game_type_cd in ["dm", "cts"]:
+        # DM, CTS, and KA don't really have "winners"
+        if row.game_type_cd in ["dm", "cts", "ka"]:
             win_pct = None
         else:
             overall_wins += row.wins