{% extends 'base.html' %} {% block header %}

{% block title %}Single player ptt{% endblock %}

{% endblock %} {% block content %}
or



{% if user %}
玩家信息 Player information
{{user['name']}} UID: {{user['user_id']}} User code: {{user['user_code']}} {% if user['ban_flag'] %} Banned {% endif %}
注册于 Registered in: {{user['join_date']}}
Memories: {{user['ticket']}}
PTT: {{'%0.2f'|format(user['rating_ptt']/100|float)}}
Best 30 PTT: {{bestptt}}
Recent 10 PTT: {{recentptt}}
Recent plays:
{{user['song_id']}} {% if user['difficulty'] == 0 %} PST {% elif user['difficulty'] == 1 %} PRS {% elif user['difficulty'] == 2 %} FTR {% elif user['difficulty'] == 4 %} ETR {% else %} BYD {% endif %}

PURE: {{user['perfect_count']}} {{'(' ~ user['shiny_perfect_count'] ~ ')'}}
FAR: {{user['near_count']}}
LOST: {{user['miss_count']}}
{{user['score']}}
{% if user['clear_type'] == 3 %}Pure Memory {% elif user['clear_type'] == 2 %}Full Recall {% elif user['clear_type'] == 5 %}Hard Clear {% elif user['clear_type'] == 1 %}Normal Clear {% elif user['clear_type'] == 4 %}Easy Clear {% else%}Track Lost {% endif %}
成绩评价 Rating: {{user['rating']}}
日期 Date: {{user['time_played']}}

{% if posts %}
Best 30
{% endif %} {% for post in posts %}
{{post['song_id']}} {% if post['difficulty'] == 0 %} PST {% elif post['difficulty'] == 1 %} PRS {% elif post['difficulty'] == 2 %} FTR {% else %} BYD {% endif %} {{'#' ~ post['rank']}}

PURE: {{post['perfect_count']}} {{'(' ~ post['shiny_perfect_count'] ~ ')'}}
FAR: {{post['near_count']}}
LOST: {{post['miss_count']}}
{{post['score']}}
{% if post['clear_type'] == 3 %}Pure Memory {% elif post['clear_type'] == 2 %}Full Recall {% elif post['clear_type'] == 5 %}Hard Clear {% elif post['clear_type'] == 1 %}Normal Clear {% elif post['clear_type'] == 4 %}Easy Clear {% else%}Track Lost {% endif %} {% if post['best_clear_type'] == 3 %}(Pure Memory) {% elif post['best_clear_type'] == 2 %}(Full Recall) {% elif post['best_clear_type'] == 5 %}(Hard Clear) {% elif post['best_clear_type'] == 1 %}(Normal Clear) {% elif post['best_clear_type'] == 4 %}(Easy Clear) {% else%}(Track Lost) {% endif %}
成绩评价 Rating: {{post['rating']}}
日期 Date: {{post['time_played']}}
{% if not loop.last %}
{% endif %} {% endfor %}
{% if recent %}
Recent 30
{% for i in recent %} {% if i %}
{{i['song_id']}} {% if i['difficulty'] == 0 %} PST {% elif i['difficulty'] == 1 %} PRS {% elif i['difficulty'] == 2 %} FTR {% elif i['difficulty'] == 4 %} ETR {% else %} BYD {% endif %} {{loop.index}}
成绩评价 Rating: {{i['rating']}}
{% if not loop.last %}
{% endif %} {% endif %} {% endfor %} {% endif %} {% endif %}
{% endblock %}