🐛 fix: do not include cancelled bookings in overview

This commit is contained in:
Marc Koch 2025-08-20 17:22:04 +02:00
parent 3b3588000f
commit 11c6d4d48e
Signed by: marc
GPG Key ID: 12406554CFB028B9
1 changed files with 5 additions and 4 deletions

View File

@ -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)