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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user