From: Ant Zucaro Date: Mon, 19 Nov 2012 02:08:00 +0000 (-0500) Subject: Looks better this way, and performs the same. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=358bb84380131a919d6f7ff8d46b04828b4bd2fb;p=xonotic%2Fxonstat.git Looks better this way, and performs the same. --- 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,