From f3b6627e63c0b02833d7a566ac832f6ab462264e Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 2 Sep 2025 09:51:05 +0200 Subject: [PATCH] Fix handling zero-duration events in organizer day-calendar (#5414) --- src/pretix/presale/views/organizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/views/organizer.py b/src/pretix/presale/views/organizer.py index 4056f03bc..47ff568f0 100644 --- a/src/pretix/presale/views/organizer.py +++ b/src/pretix/presale/views/organizer.py @@ -976,7 +976,7 @@ class DayCalendarView(OrganizerViewMixin, EventListMixin, TemplateView): return ctx events = ebd[self.date] - shortest_duration = self._get_shortest_duration(events).total_seconds() // 60 + shortest_duration = max(self._get_shortest_duration(events).total_seconds() // 60, 1) # pick the next biggest tick_duration based on shortest_duration, max. 180 minutes tick_duration = next((d for d in [5, 10, 15, 30, 60, 120, 180] if d >= shortest_duration), 180)