From 70ca5307f4adbf10a6e66e1e1f6d3f4787553b45 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 30 Apr 2012 06:40:37 -0400 Subject: [PATCH] Fix player_info template for missing player. --- xonstat/templates/player_info.mako | 4 +++- xonstat/views/player.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 0764fac..c087584 100755 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -7,6 +7,7 @@ ${nav.nav('players')} <%block name="js"> + % if player is not None: + % endif <%block name="title"> @@ -91,7 +93,6 @@ Player Information

-% endif % if accs is not None: @@ -209,3 +210,4 @@ Player Information % endif +% endif diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 44ea9de..c20a618 100755 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -211,7 +211,7 @@ def player_info(request): recent_games = None total_games = None games_breakdown = None - recent_weapons = None + recent_weapons = [] return {'player':player, 'elos_display':elos_display, -- 2.39.2