remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent b41f8b627f
commit 12a3d528e8
  1. 2
      apps/school/models.py

@ -45,7 +45,7 @@ class SchoolSchedule(models.Model):
def is_online(self):
end_at = datetime.combine(now().today(), self.start_at) + timedelta(hours=2)
return self.start_at <= now().time() and end_at.time() >= now().time()
return self.start_at <= now().time() and end_at.time() >= now().time() and self.weekday == now().isoweekday()
def current_live_lesson(self):
now_time = now()

Loading…
Cancel
Save