| Rank | Participant | Individual Tournament Scores | Final Score (Best 5) |
|||||
|---|---|---|---|---|---|---|---|---|
| T1 | T2 | T3 | T4 | T5 | T6 | |||
| {{ participant.rank }} {% if participant.rank == 1 %}🏆 {% elif participant.rank == 2 %}🥈 {% elif participant.rank == 3 %}🥉 {% endif %} |
{{ participant.name }}
|
{% for tournament_num in range(1, 7) %}
{% set found_result = false %} {% for result in participant.tournament_results %} {% if result.tournament == tournament_num %} {% set found_result = true %} {% if result.get('joker') or not result.participated %} 🃏 {% else %} {% set all_scores = [] %} {% for r in participant.tournament_results if r.participated %} {% set _ = all_scores.append(r.score) %} {% endfor %} {% set sorted_scores = all_scores|sort(reverse=true) %} {% set excluded_score = sorted_scores[-1] if sorted_scores|length > 5 else none %} {% if all_scores|length > 5 and result.score == excluded_score %} {{ result.score }} {% else %} {{ result.score }} {% endif %} {% endif %} {% endif %} {% endfor %} | {% endfor %}{{ participant.final_score }} | |||||