|
|
|
|
@ -122,7 +122,7 @@ class SchoolView(TemplateView): |
|
|
|
|
end_at = datetime.combine(now_time.today(), school_schedule.start_at) |
|
|
|
|
online = ( |
|
|
|
|
school_schedule.start_at <= now_time.time() and |
|
|
|
|
(end_at + timedelta(hours=2)).time() >= now_time.time() and |
|
|
|
|
(end_at + timedelta(hours=1)).time() >= now_time.time() and |
|
|
|
|
school_schedule.current_live_lesson() |
|
|
|
|
) |
|
|
|
|
if self.request.user.is_authenticated: |
|
|
|
|
@ -183,7 +183,7 @@ class SummerSchoolView(TemplateView): |
|
|
|
|
end_at = datetime.combine(now_time.today(), school_schedule.start_at) |
|
|
|
|
online = ( |
|
|
|
|
school_schedule.start_at <= now_time.time() and |
|
|
|
|
(end_at + timedelta(hours=2)).time() >= now_time.time() and |
|
|
|
|
(end_at + timedelta(hours=1)).time() >= now_time.time() and |
|
|
|
|
school_schedule.current_live_lesson() |
|
|
|
|
) |
|
|
|
|
if self.request.user.is_authenticated: |
|
|
|
|
|