From: Ant Zucaro Date: Sat, 20 Jul 2013 12:33:50 +0000 (-0400) Subject: No, really order by score ALWAYS :) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95a6fa5386fb52ae7f2c129311bfd582a28d3513;p=xonotic%2Fxonstat.git No, really order by score ALWAYS :) --- 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()