From e917e57be685547743f532e1f1cb0b29d675f952 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 29 Mar 2013 16:05:59 -0400 Subject: [PATCH] Clean up map view, show more on map_index page. --- xonstat/views/map.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2