{% if league.league_finished %}League Championship{% else %}League Scoreboard{% endif %}
{% if league.league_finished %} Final Rankings - Best 5 of 6 Tournaments {% else %} Tournament {{ league.current_tournament }} of {{ league.total_tournaments }} - Live Updates {% endif %}
{{ participants|length }} Participants
{{ league.current_tournament if not league.league_finished else league.total_tournaments }} {% if league.league_finished %}Total Tournaments{% else %}Current Tournament{% endif %}
{% if league.tournament_type == '40_targets' %}40{% else %}20{% endif %} Targets
{% if participants and participants|length > 0 %}{{ participants[0].final_score if league.league_finished else participants[0].current_total }}{% else %}0{% endif %} {% if league.league_finished %}Final Score{% else %}Leading Score{% endif %}
{% if participants and participants|length >= 3 %}
{% if league.league_finished %}🏆 Final Champions{% else %}🥇 Current Leaders{% endif %}
{% for i in range(3) %} {% set participant = participants[i] %}
{{ participant.rank }}
{% if participant.rank == 1 %}st {% elif participant.rank == 2 %}nd {% elif participant.rank == 3 %}rd {% else %}th {% endif %}
{% if participant.rank == 1 %}🥇 {% elif participant.rank == 2 %}🥈 {% elif participant.rank == 3 %}🥉 {% endif %}
{{ participant.name }}
ID: {{ participant.id }}
{% if participant.joker_used %}
🃏 Joker Used
{% endif %} {% if not league.league_finished and participant.current_tournament_participating %}
🎯 Playing Now
{% endif %}
{{ participant.final_score if league.league_finished else participant.current_total }}
{% if not league.league_finished %}
{% if participant.current_tournament_participating %} Current: +{{ participant.current_tournament_score }} {% else %} Final: {{ participant.final_score }} {% endif %}
{% else %}
Total: {{ participant.total_score }}
{% endif %}
{% if league.league_finished %}Final Score{% else %}Current Score{% endif %}
{% endfor %}
{% endif %}

{% if league.league_finished %} 📊 Complete Tournament Breakdown & Final Calculation {% else %} 📊 League Standings - Tournament {{ league.current_tournament }} of {{ league.total_tournaments }} {% endif %}

{% if not league.league_finished %} {% endif %} {% for participant in participants %} {% for tournament_num in range(1, 7) %} {% endfor %} {% if not league.league_finished %} {% endif %} {% endfor %}
Rank Participant Individual Tournament Scores {% if league.league_finished %} Final Score
(Best 5) {% else %} Current
(Best 5) {% endif %}
Live
T{{ league.current_tournament }}
T1 T2 T3 T4 T5 T6
{{ participant.rank }} {% if participant.rank == 1 %}🏆 {% elif participant.rank == 2 %}🥈 {% elif participant.rank == 3 %}🥉 {% endif %}
{{ participant.name }}
{{ participant.id }}
{% 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 %} {% if not found_result %} - {% endif %} {% if league.league_finished %} {{ participant.final_score }} {% else %} {{ participant.current_total }} {% endif %} {% if participant.current_tournament_participating %} {{ participant.current_tournament_score }} {% else %} - {% endif %}
📖 Scoring Legend:
Counted Score
{% if league.league_finished %}
Excluded (Worst)
{% endif %}
Joker Used
{% if league.league_finished %}Final Score (Best 5){% else %}Current Score{% endif %}
{% if not league.league_finished %}
Live Tournament
{% endif %}
🔄 Updating...