From 016bec5e5150cd0357379afb43463f1975b9119b Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Sun, 5 Aug 2012 13:50:42 +0200 Subject: [PATCH] Fixed some bugs in player_info page --- xonstat/templates/player_info.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 5855157..d86ceb5 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -259,7 +259,7 @@ Player Information
-
+

% if total_stats['games_breakdown'].has_key('duel'): Duel Stats: @@ -303,7 +303,7 @@ Player Information Win Percentage ${round(float(total_stats['ctf_wins'])/total_stats['games_breakdown']['ctf'] * 100, 2)}% (${total_stats['ctf_wins']} wins, ${total_stats['games_breakdown']['ctf'] - total_stats['ctf_wins']} losses) % endif - % if total_stats['ctf_pickups'] > 0 and total_stats['tdm_captures'] > 0: + % if total_stats['ctf_pickups'] > 0 and total_stats['ctf_caps'] > 0: | Cap Ratio ${round(float(total_stats['ctf_caps'])/total_stats['ctf_pickups'], 3)} (${total_stats['ctf_caps']} caps, ${total_stats['ctf_pickups']} pickups, ${total_stats['ctf_returns']} returns, ${total_stats['ctf_fckills']} fckills) % endif
-- 2.39.2