From 11c6d4d48ec2c1a49d40bc3f46e8eeb0f6589047 Mon Sep 17 00:00:00 2001 From: Marc Koch Date: Wed, 20 Aug 2025 17:22:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20do=20not=20include=20canc?= =?UTF-8?q?elled=20bookings=20in=20overview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clear_bookings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/clear_bookings.py b/src/clear_bookings.py index db9a993..694eb4d 100644 --- a/src/clear_bookings.py +++ b/src/clear_bookings.py @@ -392,10 +392,11 @@ def clear(target_calendars: list, is_test: bool=False) -> dict: # Add the other bookings to the overview for ob in other_bookings: - ob.is_declined = False - ob.is_overlapping = False - ob.is_other_booking = True - overview.add(ob) + if not ob.is_cancelled: + ob.is_declined = False + ob.is_overlapping = False + ob.is_other_booking = True + overview.add(ob) # Make a list from the set to ensure order overview = list(overview)