]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_hashkey_info_text.mako
Merge branch 'zykure-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 e joined_dt ${player_joined_dt}
10 e last_seen ${most_recent_game.epoch}
11 e last_seen_dt ${most_recent_game.start_dt}
12 % if player.active_ind == True:
13 e active-ind 1
14 % else:
15 e active-ind 0
16 % endif
17 e location
18 e matches ${games_played[0].games}
19 e total-deaths ${overall_stats['overall'].total_deaths}
20 e total-fckills ${overall_stats['overall'].total_carrier_frags}
21 e alivetime ${overall_stats['overall'].total_playing_time_secs}
22 e total-kills ${overall_stats['overall'].total_kills}
23 e wins ${games_played[0].wins}
24 e favorite-map ${fav_maps['overall'].map_name} ${fav_maps['overall'].times_played} ${fav_maps['overall'].game_type_cd}
25 % for game_type_cd in overall_stats.keys():
26 % if game_type_cd != 'overall':
27 G ${game_type_cd}
28 % if game_type_cd in elos.keys():
29 e elo ${elos[game_type_cd].elo}
30 % endif
31 % if game_type_cd in ranks.keys():
32 e percentile ${ranks[game_type_cd].percentile}
33 % endif
34 % for gp in games_played:
35 % if gp.game_type_cd == game_type_cd:
36 e matches ${gp.games}
37 % endif
38 % endfor
39 % if game_type_cd in ranks.keys():
40 e rank ${ranks[game_type_cd].rank}
41 % endif
42 e total-deaths ${overall_stats[game_type_cd].total_deaths}
43 e alivetime ${overall_stats[game_type_cd].total_playing_time_secs}
44 e total-kills ${overall_stats[game_type_cd].total_kills}
45 % for gp in games_played:
46 % if gp.game_type_cd == game_type_cd:
47 e wins ${gp.wins}
48 % endif
49 % endfor
50 e favorite-map ${fav_maps[game_type_cd].map_name} ${fav_maps[game_type_cd].times_played}
51 % endif
52 % endfor