]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/views/game.py
Add teamnames to teamscores, fix layout issues, fix sorting for LMS/KA
[xonotic/xonstat.git] / xonstat / views / game.py
index 0d7a9df80a01bcfe8122dad6099c73b6570fd80f..a0f65e808ae1a4b09555ff0e4180b76efee69ca4 100644 (file)
@@ -112,8 +112,9 @@ 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' 'lms' 'ka':
+        elif game.game_type_cd == 'ca':
             q = q.order_by(TeamGameStat.rounds.desc())
+        # dom -> ticks, rc -> laps, nb -> goals, as -> objectives
 
         q = q.order_by(TeamGameStat.score.desc())