Lascia trasmissibili le partite anche dopo l'orario previsto.

Se l'operatore è in ritardo deve ancora trovare la gara nell'app: restano in hub per tutta la giornata e, nei tornei aperti, fino alla fine dell'evento.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 10:07:23 +02:00
co-authored by Cursor
parent c3ef8e91a6
commit 24c6ce4da0
10 changed files with 91 additions and 14 deletions
+10 -2
View File
@@ -98,10 +98,18 @@ class Match < ApplicationRecord
active = active_stream_session
return true if active&.resumable?
return true if active&.idle?
return false if stream_completed?
return true if scheduled_on_calendar?
return true if tournament_open_for_late_stream?
scheduled_upcoming?
false
end
def tournament_open_for_late_stream?
return false unless tournament_match?
event = tournament
event.present? && !event.archived? && event.ends_on >= Date.current
end
def effective_board_type