From: Jan D. Behrens Date: Sun, 5 Aug 2012 11:50:42 +0000 (+0200) Subject: Fixed some bugs in player_info page X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=016bec5e5150cd0357379afb43463f1975b9119b;p=xonotic%2Fxonstat.git Fixed some bugs in player_info page --- 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