🐛 fix: do not include cancelled bookings in overview
This commit is contained in:
parent
3b3588000f
commit
11c6d4d48e
|
|
@ -392,10 +392,11 @@ def clear(target_calendars: list, is_test: bool=False) -> dict:
|
||||||
|
|
||||||
# Add the other bookings to the overview
|
# Add the other bookings to the overview
|
||||||
for ob in other_bookings:
|
for ob in other_bookings:
|
||||||
ob.is_declined = False
|
if not ob.is_cancelled:
|
||||||
ob.is_overlapping = False
|
ob.is_declined = False
|
||||||
ob.is_other_booking = True
|
ob.is_overlapping = False
|
||||||
overview.add(ob)
|
ob.is_other_booking = True
|
||||||
|
overview.add(ob)
|
||||||
|
|
||||||
# Make a list from the set to ensure order
|
# Make a list from the set to ensure order
|
||||||
overview = list(overview)
|
overview = list(overview)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue