From 20996200e4a00b30aa90d912000ab44d4ec18ad9 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 27 Sep 2012 22:19:52 -0400 Subject: [PATCH] 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. --- xonstat/templates/player_info.mako | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)
-- 2.39.2