{% extends "base.html" %} {% block core %}

Ranking

Download as csv, text. {% if show_teams %} {% endif %} {% for task in contest.tasks %} {% endfor %} {# This template assumes participations have two fields in addition to those in the DB: #} {# - scores: a list of pairs (score, is score partial) for each task; #} {# - total_score: the total score for the contest. #} {% for p in contest.participations %} {% if not p.hidden %} {% if show_teams %} {% if p.team %} {% else %} {% endif %} {% endif %} {% for t_score, t_partial in p.scores %} {% endfor %} {% set total_score, partial = p.total_score %} {% endif %} {% endfor %}
Username UserTeam{{ task.name }}Global
{{ p.user.username }} {{ "%s %s"|format(p.user.first_name, p.user.last_name) }}{{ p.team.name }}{{ t_score }}{{ total_score }}
{% endblock core %}