From be526167caa309742477e3a20507fd91f7ecd959 Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Sat, 4 Aug 2012 11:41:44 +0200 Subject: [PATCH] Fix some bugs (which only occur on my system??): - Use default value for 'last' if it isn't set properly in navlinks (affects "Games" page) - Use sequences instead of dictionaries in _query attribute for accuracy/damage graphs --- xonstat/templates/navlinks.mako | 4 ++++ xonstat/templates/player_info.mako | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/xonstat/templates/navlinks.mako b/xonstat/templates/navlinks.mako index 5c1fa4f..4f9aa83 100644 --- a/xonstat/templates/navlinks.mako +++ b/xonstat/templates/navlinks.mako @@ -6,6 +6,10 @@ if 'search_query' in kwargs.keys(): kwargs['_query'] = dict(kwargs['_query'].items() + kwargs['search_query'].items()) %> +% if not last: + <% last = 1 %> +% endif + % if not (curr == last and curr == 1): % if curr != 1: <% kwargs['_query']['page'] = curr-1 %> diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 2b58046..91a28b1 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -238,7 +238,7 @@ Player Information

Nex

- +
% endif @@ -248,7 +248,7 @@ Player Information

Rifle

- +
% endif @@ -258,7 +258,7 @@ Player Information

Minstanex

- +
% endif @@ -268,7 +268,7 @@ Player Information

Uzi

- +
% endif @@ -278,7 +278,7 @@ Player Information

Shotgun

- +
% endif @@ -304,7 +304,7 @@ Player Information

Rocket

- +
% endif @@ -314,7 +314,7 @@ Player Information

Mortar

- +
% endif @@ -324,7 +324,7 @@ Player Information

Electro

- +
% endif @@ -334,7 +334,7 @@ Player Information

Crylink

- +
% endif @@ -344,7 +344,7 @@ Player Information

Hagar

- +
% endif @@ -354,7 +354,7 @@ Player Information

Laser

- +
% endif -- 2.39.2