From: Ant Zucaro Date: Mon, 30 Apr 2012 10:40:37 +0000 (-0400) Subject: Fix player_info template for missing player. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=70ca5307f4adbf10a6e66e1e1f6d3f4787553b45;p=xonotic%2Fxonstat.git Fix player_info template for missing player. --- 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,