{{ match_name }}

Status: {{ status }}Last updated: {{ updated_time }}
{# Build the summary rows we want down the left column. We'll display 13 rows (you can increase if you want), safe-guarded. #} {% set rows = 13 %} {% set summary_safe = summary or [] %} {% set sb0 = summary_safe[0] if summary_safe|length > 0 else None %} {% set sb1 = summary_safe[1] if summary_safe|length > 1 else None %} {% set sb2 = summary_safe[2] if summary_safe|length > 2 else None %} {% set sb3 = summary_safe[3] if summary_safe|length > 3 else None %} {% set team0_innings = team_innings_map[teams[0]] %} {% set team1_innings = team_innings_map[teams[1]] %} {% set left_labels = [ teams[0] if teams|length>0 else "Team 1", "1st Innings", "2nd Innings", teams[1] if teams|length>1 else "Team 2", "1st Innings", "2nd Innings", "" "WICKETS", current_batters[0].name if current_batters|length>0 else "", current_batters[1].name if current_batters|length>1 else "", "SUNDRIES", "TOTAL", "LEAD" ] %} {% set left_scores = [ "", (team0_innings[0].w ~ '/' ~ team0_innings[0].r ~ ' (' ~ team0_innings[0].o ~ ' ov)') if team0_innings|length>0 else "", (team0_innings[1].w ~ '/' ~ team0_innings[1].r ~ ' (' ~ team0_innings[1].o ~ ' ov)') if team0_innings|length>1 else "", "", (team1_innings[0].w ~ '/' ~ team1_innings[0].r ~ ' (' ~ team1_innings[0].o ~ ' ov)') if team1_innings|length>0 else "", (team1_innings[1].w ~ '/' ~ team1_innings[1].r ~ ' (' ~ team1_innings[1].o ~ ' ov)') if team1_innings|length>1 else "", (curr_wkts if curr_wkts is not none else ""), (current_batters[0].runs ~ ' off ' ~ current_batters[0].balls) if current_batters|length>0 else "", (current_batters[1].runs ~ ' off ' ~ current_batters[1].balls) if current_batters|length>1 else "", curr_extras if curr_extras is not none else "", (curr_wkts ~ '/' ~ curr_runs ~ ' (' ~ curr_overs ~ ' ov)') if curr_runs is not none else "", lead_text, ] %} {# iterate rows; for bowlers/batters use curr_bowl and curr_bat lists (safely) #} {% for i in range(rows) %} {# Bowler columns #} {# Batter columns #} {% endfor %}
SUMMARY # BOWLERS O M Wkts Runs # BATTERS OUT B RUNS Balls FALL of WKTS
{% if i in [1,2,3,4,5,6] %} {{ left_labels[i] |replace('1st','1st') |replace('2nd','2nd') |safe }} {% else %} {{ left_labels[i] if i < left_labels|length else "" }} {% endif %} {{ left_scores[i] if i < left_scores|length else "" }}{{ curr_bowl[i].num if curr_bowl|length > i else "" }} {{ curr_bowl[i].display_name if curr_bowl|length > i else "" }} {{ curr_bowl[i].overs if curr_bowl|length > i else "" }} {{ curr_bowl[i].mdns if curr_bowl|length > i else "" }} {{ curr_bowl[i].wkts if curr_bowl|length > i else "" }} {{ curr_bowl[i].runs if curr_bowl|length > i else "" }}{{ curr_bat[i].num if curr_bat|length > i else "" }} {{ curr_bat[i].display_name if curr_bat|length > i else "" }} {{ curr_bat[i].bcode if curr_bat|length > i else "" }} {{ curr_bat[i].runs if curr_bat|length > i else "" }} {{ curr_bat[i].balls if curr_bat|length > i else "" }}