From 71c9a096280132c786064be707b1063d7eeb802a Mon Sep 17 00:00:00 2001
From: Ant Zucaro <azucaro@gmail.com>
Date: Tue, 25 Sep 2018 06:57:53 -0400
Subject: [PATCH] KA is another mode similar to the others.

---
 xonstat/views/player.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xonstat/views/player.py b/xonstat/views/player.py
index e0b9695..2fb716c 100644
--- a/xonstat/views/player.py
+++ b/xonstat/views/player.py
@@ -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
-- 
2.39.5