KA is another mode similar to the others. win-percentage 9/head
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 e0b9695..2fb716c 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