@ -223,8 +223,7 @@ class SummerSchoolView(TemplateView):
school_schedules_purchased = []
if school_payment_exists and is_previous:
live_lessons = LiveLesson.objects.filter(
date__gte=school_payment.last().date_start,
date__range=[(now_time - timedelta(days=8)).date(), (now_time - timedelta(days=1)).date()],
date__lt=(now_time - timedelta(days=1)).date(),
deactivated_at__isnull=True,
)
live_lessons_exists = live_lessons.exists()