]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_hashkey_info_text.mako
Merge branch 'master' into approved
[xonotic/xonstat.git] / xonstat / templates / player_hashkey_info_text.mako
1 V 1
2 R XonStat/1.0
3 T ${now}
4 S ${request.route_url('player_info', id=player.player_id)}
5 P ${hashkey}
6 n ${player.nick}
7 i ${player.player_id}
8 e joined ${player_joined}
9 % if player.active_ind == True:
10 e active-ind 1
11 % else:
12 e active-ind 0
13 % endif
14 e location
15 e matches ${games_played[0].games}
16 e total-deaths ${overall_stats['overall'].total_deaths}
17 e total-fckills ${overall_stats['overall'].total_carrier_frags}
18 e alivetime ${overall_stats['overall'].total_playing_time_secs}
19 e total-kills ${overall_stats['overall'].total_kills}
20 e wins ${games_played[0].wins}
21 e favorite-map ${fav_maps['overall'].map_name} ${fav_maps['overall'].times_played} ${fav_maps['overall'].game_type_cd}
22 % for game_type_cd in overall_stats.keys():
23 % if game_type_cd != 'overall':
24 { G ${game_type_cd}
25 % if game_type_cd in elos.keys():
26 e elo ${elos[game_type_cd].elo}
27 % endif
28 % if game_type_cd in ranks.keys():
29 e percentile ${ranks[game_type_cd].percentile}
30 % endif
31 % for gp in games_played:
32 % if gp.game_type_cd == game_type_cd:
33 e matches ${gp.games}
34 % endif
35 % endfor
36 % if game_type_cd in ranks.keys():
37 e rank ${ranks[game_type_cd].rank}
38 % endif
39 e total-deaths ${overall_stats[game_type_cd].total_deaths}
40 e alivetime ${overall_stats[game_type_cd].total_playing_time_secs}
41 e total-kills ${overall_stats[game_type_cd].total_kills}
42 % for gp in games_played:
43 % if gp.game_type_cd == game_type_cd:
44 e wins ${gp.wins}
45 % endif
46 % endfor
47 e favorite-map ${fav_maps[game_type_cd].map_name} ${fav_maps[game_type_cd].times_played}
48 }
49 % endif
50 % endfor