From: Ant Zucaro Date: Fri, 28 Sep 2012 02:19:52 +0000 (-0400) Subject: Add total playing time. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=20996200e4a00b30aa90d912000ab44d4ec18ad9;p=xonotic%2Fxonstat.git Add total playing time. I forgot to add the total playing time from the get_overall_stats call. This includes it and moves win percentage over to the right pane to space things out more evenly. --- diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 8bb282f..4e42ff1 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -216,15 +216,17 @@ Player Information Games Played: ${g.games}
+ Playing Time: ${overall_stats[g.game_type_cd].total_playing_time}
+ % if g.game_type_cd in fav_maps: Favorite Map: ${fav_maps[g.game_type_cd].map_name}
% endif - - Win Percentage: ${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses)

+ Win Percentage: ${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses)
+ % if g.game_type_cd in overall_stats: % if overall_stats[g.game_type_cd].k_d_ratio is not None: Kill Ratio: ${round(overall_stats[g.game_type_cd].k_d_ratio,2)} (${overall_stats[g.game_type_cd].total_kills} kills, ${overall_stats[g.game_type_cd].total_deaths} deaths)