From c630c270a4c1d9601750bc201d5089192576849a Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 18 Nov 2012 21:08:00 -0500 Subject: [PATCH] Looks better this way, and performs the same. --- xonstat/views/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xonstat/views/main.py b/xonstat/views/main.py index 3732b48..8ae9b8e 100644 --- a/xonstat/views/main.py +++ b/xonstat/views/main.py @@ -86,9 +86,9 @@ def _main_index_data(request): group_by(Map.name).limit(leaderboard_count).all() # recent games played in descending order - #rgs = recent_games_q(cutoff=back_then).limit(recent_games_count).all() - #recent_games = [RecentGame(row) for row in rgs] - recent_games = [RecentGame(row) for row in recent_games_q(cutoff=back_then).limit(recent_games_count).all()] + rgs = recent_games_q(cutoff=back_then).limit(recent_games_count).all() + recent_games = [RecentGame(row) for row in rgs] + return {'top_players':top_players, 'top_servers':top_servers, 'top_maps':top_maps, -- 2.39.2