From 05a5cb6f314c1bb584633f769b2d61a3db2b4fe1 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 20 Jul 2013 08:37:10 -0400 Subject: [PATCH] KA display by score, not rounds. --- xonstat/templates/game_info.mako | 2 +- xonstat/views/game.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 2b70b16..f8a685c 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -71,7 +71,7 @@ Game Information % if game.game_type_cd == 'ctf': ${tgstat.caps} - % elif game.game_type_cd in 'ca' 'ft' 'lms' 'ka': + % elif game.game_type_cd in 'ca' 'lms' 'ka': ${tgstat.rounds} % else: ${tgstat.score} diff --git a/xonstat/views/game.py b/xonstat/views/game.py index b7e197b..f0cbb82 100644 --- a/xonstat/views/game.py +++ b/xonstat/views/game.py @@ -110,7 +110,7 @@ def _game_info_data(request): filter(TeamGameStat.game_id == game_id) if game.game_type_cd == 'ctf': q = q.order_by(TeamGameStat.caps.desc()) - elif game.game_type_cd in 'ca' 'ft' 'lms' 'ka': + elif game.game_type_cd in 'ca' 'lms' 'ka': q = q.order_by(TeamGameStat.rounds.desc()) q = q.order_by(TeamGameStat.score.desc()) -- 2.39.2