]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Clean up map view, show more on map_index page.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 29 Mar 2013 20:05:59 +0000 (16:05 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 29 Mar 2013 20:05:59 +0000 (16:05 -0400)
xonstat/views/map.py

index 4c65a2d45a44ecfe29be115c85d7aa1607c3f9a3..bdd8c885c49aa078629057691c3ab5712453834a 100644 (file)
@@ -3,8 +3,7 @@ import sqlalchemy.sql.functions as func
 import sqlalchemy.sql.expression as expr
 from collections import namedtuple
 from datetime import datetime, timedelta
-from sqlalchemy import desc
-from webhelpers.paginate import Page, PageURL
+from webhelpers.paginate import Page
 from xonstat.models import *
 from xonstat.util import page_url, html_colors
 from xonstat.views.helpers import RecentGame, recent_games_q
@@ -21,7 +20,7 @@ def _map_index_data(request):
         map_q = DBSession.query(Map).\
                 order_by(Map.map_id.desc())
 
-        maps = Page(map_q, current_page, items_per_page=10, url=page_url)
+        maps = Page(map_q, current_page, items_per_page=25, url=page_url)
 
     except Exception as e:
         maps = None