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

Add note for possible bug or unexpected behaviour

parent ae5cfae3
No related branches found
No related tags found
1 merge request!3Merge into fork's `main` branch
......@@ -579,6 +579,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 len(avail_union) == 1 and avail_union[0].contains(full_event):
......@@ -699,6 +702,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