|
|
|
|
@ -34,14 +34,14 @@ class IndexView(TemplateView): |
|
|
|
|
online = ( |
|
|
|
|
school_schedule.start_at <= now_time.time() and |
|
|
|
|
(end_at + timedelta(hours=1)).time() >= now_time.time() and |
|
|
|
|
school_schedule.current_live_lesson() |
|
|
|
|
school_schedule.current_live_lesson |
|
|
|
|
) |
|
|
|
|
online_coming_soon = ( |
|
|
|
|
school_schedule.start_at > now_time.time() and |
|
|
|
|
( |
|
|
|
|
datetime.combine(datetime.today(), school_schedule.start_at) - timedelta(hours=12) |
|
|
|
|
).time() <= now_time.time() and |
|
|
|
|
school_schedule.current_live_lesson() |
|
|
|
|
school_schedule.current_live_lesson |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
date_now = now_time.date() |
|
|
|
|
|