From baf075e61005c2c98fba3406031c41084b86773f Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 15 May 2012 06:46:54 -0400 Subject: [PATCH] Convert rank_index to use page as GET too. --- xonstat/templates/rank_index.mako | 2 +- xonstat/views/game.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako index 75f4574..a3ce68f 100755 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -39,5 +39,5 @@ Rank Index -${navlinks("rank_index_paged", ranks.page, ranks.last_page, game_type_cd=game_type_cd)} +${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)} % endif diff --git a/xonstat/views/game.py b/xonstat/views/game.py index 4b8bdbf..336acba 100755 --- a/xonstat/views/game.py +++ b/xonstat/views/game.py @@ -99,8 +99,8 @@ def rank_index(request): """ Provide a list of gametype ranks, paginated. """ - if 'page' in request.matchdict: - current_page = request.matchdict['page'] + if request.params.has_key('page'): + current_page = request.params['page'] else: current_page = 1 -- 2.39.2