From: Ant Zucaro Date: Wed, 26 Jun 2013 11:44:08 +0000 (-0400) Subject: Fix another rank -> scoreboardpos bug. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6397074df7859101b0c546085201982d67efd441;p=xonotic%2Fxonstat.git Fix another rank -> scoreboardpos bug. --- diff --git a/xonstat/views/helpers.py b/xonstat/views/helpers.py index a3b3f53..8a10a48 100644 --- a/xonstat/views/helpers.py +++ b/xonstat/views/helpers.py @@ -119,12 +119,12 @@ def recent_games_q(server_id=None, map_id=None, player_id=None, filter(PlayerGameStat.player_id==player_id) else: recent_games_q = recent_games_q.\ - filter(PlayerGameStat.rank==1).\ + filter(PlayerGameStat.scoreboardpos==1).\ filter(Game.game_id==pgstat_alias.game_id).\ filter(pgstat_alias.player_id==player_id) else: recent_games_q = recent_games_q.\ - filter(PlayerGameStat.rank==1) + filter(PlayerGameStat.scoreboardpos==1) if game_type_cd is not None: recent_games_q = recent_games_q.\