From 95a6fa5386fb52ae7f2c129311bfd582a28d3513 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 20 Jul 2013 08:33:50 -0400 Subject: [PATCH] No, really order by score ALWAYS :) --- xonstat/views/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xonstat/views/game.py b/xonstat/views/game.py index 21bed83..b7e197b 100644 --- a/xonstat/views/game.py +++ b/xonstat/views/game.py @@ -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() -- 2.39.2