|
|
|
|
@ -67,7 +67,7 @@ class LiveLessonsDetailView(DetailView): |
|
|
|
|
is_purchased = SchoolPayment.objects.filter( |
|
|
|
|
user=request.user, |
|
|
|
|
date_start__lte=now(), |
|
|
|
|
date_end__gte=now(), |
|
|
|
|
date_end__gte=now() - timedelta(days=7), |
|
|
|
|
status__in=[ |
|
|
|
|
Pingback.PINGBACK_TYPE_REGULAR, |
|
|
|
|
Pingback.PINGBACK_TYPE_GOODWILL, |
|
|
|
|
@ -129,7 +129,7 @@ class SchoolView(TemplateView): |
|
|
|
|
school_schedules_sorted = sorted(school_schedules, |
|
|
|
|
key=lambda ss: ss.current_live_lesson and ss.current_live_lesson.date) |
|
|
|
|
except Exception: |
|
|
|
|
pass |
|
|
|
|
school_schedules_sorted = school_schedules |
|
|
|
|
live_lessons = [] |
|
|
|
|
live_lessons_exists = False |
|
|
|
|
subscription_ends = None |
|
|
|
|
|