From 40e7cd31cf5e4802fe6b36fcf8ccaea817ea16fa Mon Sep 17 00:00:00 2001 From: gzbender Date: Mon, 20 Aug 2018 22:59:27 +0500 Subject: [PATCH] LIL-622 --- apps/school/views.py | 2 +- apps/user/templates/user/profile.html | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/school/views.py b/apps/school/views.py index 11a4c439..f9a0fa7a 100644 --- a/apps/school/views.py +++ b/apps/school/views.py @@ -245,7 +245,7 @@ class SummerSchoolView(TemplateView): school_schedules_purchased = [] if all_schedules_purchased and is_previous: live_lessons = LiveLesson.objects.filter( - date__range=[month_start, yesterday], + date__range=[yesterday - timedelta(days=7), yesterday], deactivated_at__isnull=True, date__week_day__in=all_schedules_purchased, ).order_by('-date') diff --git a/apps/user/templates/user/profile.html b/apps/user/templates/user/profile.html index fd279635..f39fc6e3 100644 --- a/apps/user/templates/user/profile.html +++ b/apps/user/templates/user/profile.html @@ -64,7 +64,7 @@
- {# #} + @@ -75,7 +75,6 @@ {% endif %}
- {% comment %}
{% if is_purchased_future %}
@@ -106,8 +105,7 @@ {% endif %} {% endif %}
- {% endcomment %} -
+
{% if paid.exists %}