]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Looks better this way, and performs the same.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 19 Nov 2012 02:08:00 +0000 (21:08 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 19 Nov 2012 02:08:00 +0000 (21:08 -0500)
xonstat/views/main.py

index 3732b48d252427d405ac0ec139666f02205821d2..8ae9b8e190db58ff3ac92c9b166ffc9561a431b0 100644 (file)
@@ -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,