X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Fviews%2Fmap.py;h=bdd8c885c49aa078629057691c3ab5712453834a;hp=4c65a2d45a44ecfe29be115c85d7aa1607c3f9a3;hb=e917e57be685547743f532e1f1cb0b29d675f952;hpb=ec61e1f548359d7b7e065b361ab95a53b9481ec4 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