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)