From: Ant Zucaro Date: Mon, 22 Apr 2013 23:35:34 +0000 (-0400) Subject: Use the correct pgstat row for Elo. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74f1aad9684c21f5d87c458968750c0421a3836f;p=xonotic%2Fxonstat.git Use the correct pgstat row for Elo. --- diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 197a4d2..d314c12 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -394,7 +394,7 @@ def get_recent_games(player_id): Provides a list of recent games for a player. Uses the recent_games_q helper. """ # recent games played in descending order - rgs = recent_games_q(player_id=player_id).limit(10).all() + rgs = recent_games_q(player_id=player_id, force_player_id=True).limit(10).all() recent_games = [RecentGame(row) for row in rgs] return recent_games