From: Ant Zucaro Date: Tue, 15 May 2012 10:46:54 +0000 (-0400) Subject: Convert rank_index to use page as GET too. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=baf075e61005c2c98fba3406031c41084b86773f;p=xonotic%2Fxonstat.git Convert rank_index to use page as GET too. --- 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