diff --git a/smash/web/views.py b/smash/web/views.py index 0466b85a2d91d14c6653619c31a6280eca8a4197..d7e114eaa63c45f21ed8114643b96dd6a81d0eff 100644 --- a/smash/web/views.py +++ b/smash/web/views.py @@ -183,7 +183,7 @@ def get_approaching_visits_without_appointments_count(user): def get_approaching_visits_without_appointments(user): today = get_today_midnight_date() - today_plus_two_months =today+datetime.timedelta(days=62) + today_plus_two_months =today+datetime.timedelta(days=93) return Visit.objects.annotate(my_count=Count(Case(When(appointment__status=Appointment.APPOINTMENT_STATUS_SCHEDULED, then=1)))).filter( datetime_begin__gt = today, datetime_begin__lt = today_plus_two_months,