]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
KA display by score, not rounds.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 20 Jul 2013 12:37:10 +0000 (08:37 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 20 Jul 2013 12:37:10 +0000 (08:37 -0400)
xonstat/templates/game_info.mako
xonstat/views/game.py

index 2b70b16d2973d5b9d3b9b9e2368d3072cf6cf359..f8a685ca80d4de244a0bc1a8a8fe04f60d590b93 100644 (file)
@@ -71,7 +71,7 @@ Game Information
   <span class="${tgstat.team_html_color()}">
   % 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}
index b7e197b08bd4c762df844653ed9afd9438214acd..f0cbb8257d187c5b15b5fe0f6296a7fff06e8a1d 100644 (file)
@@ -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())