Allinea stato e titolo replay del tabellone al risultato reale.

Una gara con punteggio non resta più «In programma» solo perché l'orario è futuro, e i replay usano le squadre del match invece della squadra di trasmissione.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 09:15:10 +02:00
co-authored by Cursor
parent 097e55df79
commit b09e83db09
7 changed files with 109 additions and 8 deletions
@@ -100,8 +100,8 @@ module Public
def tournament_public_board_state(match)
return :live if tournament_public_live_session(match)
return :replay if tournament_public_recording(match)
return :ended if match.played? || match.result_status.to_s.start_with?("walkover") || match.home_score.present?
return :scheduled if match.scheduled_upcoming?
return :ended if match.played? || match.home_score.present?
:waiting
end