]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
No, really order by score ALWAYS :)
authorAnt Zucaro <azucaro@gmail.com>
Sat, 20 Jul 2013 12:33:50 +0000 (08:33 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 20 Jul 2013 12:33:50 +0000 (08:33 -0400)
xonstat/views/game.py

index 21bed83ac0b2cda895f96f14c310698a7266e051..b7e197b08bd4c762df844653ed9afd9438214acd 100644 (file)
@@ -112,8 +112,8 @@ def _game_info_data(request):
             q = q.order_by(TeamGameStat.caps.desc())
         elif game.game_type_cd in 'ca' 'ft' 'lms' 'ka':
             q = q.order_by(TeamGameStat.rounds.desc())
-        else:
-            q = q.order_by(TeamGameStat.score.desc())
+
+        q = q.order_by(TeamGameStat.score.desc())
 
         tgstats = q.all()