From 6e142ff693a396b60e1eaf389e236d2850603dc6 Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 21 Aug 2018 14:03:14 +0500 Subject: [PATCH] LIL-622 --- apps/school/views.py | 2 +- project/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/school/views.py b/apps/school/views.py index 9e426c3d..e09801c2 100644 --- a/apps/school/views.py +++ b/apps/school/views.py @@ -130,7 +130,7 @@ class SchoolView(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 ) school_schedules = SchoolSchedule.objects.all() diff --git a/project/views.py b/project/views.py index 57435b56..73e6877a 100644 --- a/project/views.py +++ b/project/views.py @@ -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()