</div>
<!-- navigation links -->
-${navlinks("player_game_index_paged", games.page, games.last_page, player_id=player_id)}
+${navlinks("player_game_index", games.page, games.last_page, player_id=player_id)}
% endif
"""\r
player_id = request.matchdict['player_id']\r
\r
- if 'page' in request.matchdict:\r
- current_page = request.matchdict['page']\r
+ if request.params.has_key('page'):\r
+ current_page = request.params['page']\r
else:\r
current_page = 1\r
\r
filter(Game.map_id == Map.map_id).\\r
order_by(Game.game_id.desc())\r
\r
- games = Page(games_q, current_page, url=page_url)\r
+ games = Page(games_q, current_page, items_per_page=10, url=page_url)\r
\r
pgstats = {}\r
for (game, server, map) in games:\r