]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Use the correct pgstat row for Elo.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 22 Apr 2013 23:35:34 +0000 (19:35 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 22 Apr 2013 23:35:34 +0000 (19:35 -0400)
xonstat/views/player.py

index 197a4d28b8301cd3e6a05fca75a02d01c2d74421..d314c12ed682184a93de46648837c7bc5469b0eb 100644 (file)
@@ -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