]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Use scoreboardpos instead of rank to sort.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 16 Jan 2013 02:45:02 +0000 (21:45 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 16 Jan 2013 02:45:02 +0000 (21:45 -0500)
xonstat/views/game.py

index 44d9bb131481654253af87f1e2875e515d986669..2a7fbb56ad5cb2d7245532ffadb6e5792e166ac0 100644 (file)
@@ -29,7 +29,7 @@ def _game_index_data(request):
     for (game, server, map) in games:
         pgstats[game.game_id] = DBSession.query(PlayerGameStat).\
                 filter(PlayerGameStat.game_id == game.game_id).\
-                order_by(PlayerGameStat.rank).\
+                order_by(PlayerGameStat.scoreboardpos).\
                 order_by(PlayerGameStat.score).all()
 
     return {'games':games,
@@ -72,7 +72,7 @@ def _game_info_data(request):
 
         pgstats = DBSession.query(PlayerGameStat).\
                 filter(PlayerGameStat.game_id == game_id).\
-                order_by(PlayerGameStat.rank).\
+                order_by(PlayerGameStat.scoreboardpos).\
                 order_by(PlayerGameStat.score).\
                 all()
 
@@ -90,7 +90,7 @@ def _game_info_data(request):
                 filter(PlayerWeaponStat.weapon_cd == Weapon.weapon_cd).\
                 filter(PlayerWeaponStat.player_game_stat_id == \
                     PlayerGameStat.player_game_stat_id).\
-                order_by(PlayerGameStat.rank).\
+                order_by(PlayerGameStat.scoreboardpos).\
                 order_by(PlayerGameStat.score).\
                 order_by(Weapon.descr).\
                 all():