Room occupation not computed properly during capacity check
JobDoesburg opened this issue · comments
sagexit/website/room_reservation/views.py
Lines 43 to 53 in a33e48b
Currently we count all overlapping reservations when adding a new reservation. However, it is very well possible that in total the amount of overlapping reservations exceeds 6 when some reservations take longer others take shorter. We should count the overlapping reservations that all overlap with each other (so 10:00-12:00 and 12:00-14:00 both overlap with 10:00-14:00, but in the capacity computation, they should count as 1).