Skip to content
Snippets Groups Projects
Commit 42659e66 authored by Felix Blanke's avatar Felix Blanke
Browse files

Add note for possible bug or unexpected behaviour

parent 4ca93c4b
No related branches found
No related tags found
1 merge request!268Merge fork for interoperability of KoMa solver
......@@ -632,6 +632,9 @@ class Room(models.Model):
# check if room is available for the whole event
# -> no time constraint needs to be introduced
# NOTE: Cannot use `Availability.with_event_length` as its end is the
# event end + 1 day
full_event = Availability(event=self.event, start=self.event.start, end=self.event.end)
avail_union = Availability.union(self.availabilities.all())
if not avail_union or avail_union[0].contains(full_event):
......@@ -753,6 +756,9 @@ class AKSlot(models.Model):
# check if ak resp. owner is available for the whole event
# -> no time constraint needs to be introduced
# NOTE: Cannot use `Availability.with_event_length` as its end is the
# event end + 1 day
full_event = Availability(event=self.event, start=self.event.start, end=self.event.end)
ak_avail_union = Availability.union(self.ak.availabilities.all())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment