From: Ant Zucaro Date: Sat, 20 Jul 2013 12:37:10 +0000 (-0400) Subject: KA display by score, not rounds. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05a5cb6f314c1bb584633f769b2d61a3db2b4fe1;p=xonotic%2Fxonstat.git KA display by score, not rounds. --- 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())