projects
/
xonotic
/
xonstat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae23537
)
KA is another mode similar to the others.
win-percentage
author
Ant Zucaro <azucaro@gmail.com>
Tue, 25 Sep 2018 10:57:53 +0000
(06:57 -0400)
committer
Ant Zucaro <azucaro@gmail.com>
Tue, 25 Sep 2018 10:57:53 +0000
(06:57 -0400)
xonstat/views/player.py
patch
|
blob
|
history
diff --git
a/xonstat/views/player.py
b/xonstat/views/player.py
index e0b969557c42ba60fc65255792a6acdd10a5a589..2fb716c226d97071bc67f715b84e9477cb711609 100644
(file)
--- 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