[fix]Fix style; Re-enable checking happening now

This commit is contained in:
Jimmy 2021-04-08 12:52:13 +08:00
parent 228ec4a650
commit bb44f10120
4 changed files with 7 additions and 19 deletions

View file

@ -3,7 +3,6 @@
DEFAULT_LOGO = 'snapcon_logo.png'
DEFAULT_COLOR = '#0B3559'
module ConferenceHelper
# Return true if only call_for_papers or call_for_tracks or call_for_booths is open
def one_call_open(*calls)
@ -82,7 +81,7 @@ module ConferenceHelper
def get_happening_now_events_schedules(conference)
events_schedules = conference.program.selected_event_schedules(
includes: [:room, { event: %i[track event_type speakers submitter] }]
)#.select(&:happening_now?)
).select(&:happening_now?)
events_schedules ||= []
events_schedules
end