From: Ant Zucaro Date: Fri, 29 Mar 2013 20:05:59 +0000 (-0400) Subject: Clean up map view, show more on map_index page. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e917e57be685547743f532e1f1cb0b29d675f952;p=xonotic%2Fxonstat.git Clean up map view, show more on map_index page. --- diff --git a/xonstat/views/map.py b/xonstat/views/map.py index 4c65a2d..bdd8c88 100644 --- a/xonstat/views/map.py +++ b/xonstat/views/map.py @@ -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