From fab29088e6869e17facdf8dd7030a6b459d67b87 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 29 Jan 2024 12:47:43 +0100 Subject: [PATCH] Event calendar: Don't skip week if it is still sunday --- src/pretix/presale/views/organizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/presale/views/organizer.py b/src/pretix/presale/views/organizer.py index ed8f4c51d1..3bd5d6bdf9 100644 --- a/src/pretix/presale/views/organizer.py +++ b/src/pretix/presale/views/organizer.py @@ -654,7 +654,7 @@ def days_for_template(ebd, week, future_only=False): 'events': sorted(ebd.get(day), key=sort_ev) if day in ebd else [] } for day in week.days() - if not future_only or day > now().astimezone(get_current_timezone()).date() + if not future_only or day >= now().astimezone(get_current_timezone()).date() ] @@ -677,7 +677,7 @@ def weeks_for_template(ebd, year, month, future_only=False): ] for week in calendar.monthcalendar(year, month) if not future_only or ( - any(day != 0 and date(year, month, day) > today for day in week) + any(day != 0 and date(year, month, day) >= today for day in week) ) ]