From c6fcd4c5237c93d88878fa2bd6b328aaa227ac4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 24 Jun 2026 17:53:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20farthest=20booking=20calcu?= =?UTF-8?q?lation=20being=20cut=20by=201d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/appointment/controller/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/appointment/controller/calendar.py b/backend/src/appointment/controller/calendar.py index 14a40c440..eaca7aea4 100644 --- a/backend/src/appointment/controller/calendar.py +++ b/backend/src/appointment/controller/calendar.py @@ -1058,7 +1058,7 @@ def existing_events_for_schedule( now = datetime.now() earliest_booking = now + timedelta(minutes=schedule.earliest_booking) - farthest_booking = now + timedelta(minutes=schedule.farthest_booking) + farthest_booking = now + timedelta(days=1, minutes=schedule.farthest_booking) start = max([datetime.combine(schedule.start_date, schedule.start_time), earliest_booking]) end = (