]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Do not send top-level elo/rank/pct.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 30 Dec 2012 21:26:58 +0000 (16:26 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 30 Dec 2012 21:26:58 +0000 (16:26 -0500)
xonstat/templates/player_hashkey_info_text.mako

index 6d47e4421dd4a3090240a56a75b1c50e9d2399dd..bacdd03f63bc62f658fd367cfd7ea7b126e9626e 100644 (file)
@@ -5,7 +5,6 @@ S ${request.route_url('player_info', id=player.player_id)}
 P ${hashkey}
 n ${player.nick}
 i ${player.player_id}
-# NOTE: using unixtime here
 e joined ${player_joined}
 % if player.active_ind == True:
 e active-ind 1
@@ -13,19 +12,7 @@ e active-ind 1
 e active-ind 0
 % endif
 e location
-% if 'overall' in elos.keys():
-# NOTE: need game type here to specify which elo is being shown as "best"
-e elo ${elos['overall'].elo} ${elos['overall'].game_type_cd}
-% endif
-% if 'overall' in ranks.keys():
-# NOTE: need game type here to specify which percentile is being shown as "best"
-e percentile ${ranks['overall'].percentile} ${ranks['overall'].game_type_cd}
-% endif
 e matches ${games_played[0].games}
-% if 'overall' in ranks.keys():
-# NOTE: need game type here to specify which rank is being shown as "best"
-e rank ${ranks['overall'].rank} ${ranks['overall'].game_type_cd}
-% endif
 e total-deaths ${overall_stats['overall'].total_deaths}
 e total-fckills ${overall_stats['overall'].total_carrier_frags}
 e alivetime ${overall_stats['overall'].total_playing_time_secs}
@@ -33,6 +20,7 @@ e total-kills ${overall_stats['overall'].total_kills}
 e wins ${games_played[0].wins}
 e favorite-map ${fav_maps['overall'].map_name} ${fav_maps['overall'].times_played} ${fav_maps['overall'].game_type_cd}
 % for game_type_cd in overall_stats.keys():
+% if game_type_cd != 'overall':
 { G ${game_type_cd}
 % if game_type_cd in elos.keys():
 e elo ${elos[game_type_cd].elo}
@@ -58,4 +46,5 @@ e wins ${gp.wins}
 % endfor
 e favorite-map ${fav_maps[game_type_cd].map_name} ${fav_maps[game_type_cd].times_played}
 }
+% endif
 % endfor