implementation in progress

This commit is contained in:
Jimmy 2021-03-12 10:38:47 -08:00 committed by CactusPuppy
parent f3db1288cf
commit 018bbff7b8
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
4 changed files with 12 additions and 2 deletions

View file

@ -784,7 +784,7 @@ class Conference < ApplicationRecord
end_date < Time.current
end
def find_live_events()
def find_live_events
live_events = []
for event in program.events
if event.is_live?

View file

@ -338,7 +338,7 @@ class Event < ApplicationRecord
end
def is_live?
start_time >= Time.now && Time.now <= start_time + event_type.length
time() >= Time.now && Time.now <= time() + event_type.length
end
private