]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Show more games on player_game_index page.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:36:20 +0000 (22:36 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:36:20 +0000 (22:36 -0400)
xonstat/views/player.py

index 424c1c558ac0efb94af1d63b8c08ccf5e28dadba..96d007e19439b5849e51f8ba528c43403fe5acb8 100644 (file)
@@ -179,10 +179,10 @@ def get_overall_stats(player_id):
                 "FROM   player_game_stats pgs "
                 "WHERE  pgs.player_id = :player_id "
             ).params(player_id=player_id).all()
-    
+
     # to be indexed by game_type_cd
     overall_stats = {}
-    
+
     for row in raw_stats:
         # individual gametype ratio calculations
         try:
@@ -633,7 +633,7 @@ def player_game_index_data(request):
         rgs_q = recent_games_q(player_id=player.player_id,
             force_player_id=True, game_type_cd=game_type_cd)
 
-        games = Page(rgs_q, current_page, items_per_page=10, url=page_url)
+        games = Page(rgs_q, current_page, items_per_page=20, url=page_url)
 
         # replace the items in the canned pagination class with more rich ones
         games.items = [RecentGame(row) for row in games.items]