Skip to content
Snippets Groups Projects
Commit 423b6576 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

fix constraint checking bugs

parent 01085ec5
No related branches found
No related tags found
No related merge requests found
...@@ -425,7 +425,7 @@ class AKSlot(models.Model): ...@@ -425,7 +425,7 @@ class AKSlot(models.Model):
return (timezone.now() - self.updated).total_seconds() return (timezone.now() - self.updated).total_seconds()
def overlaps(self, other: "AKSlot"): def overlaps(self, other: "AKSlot"):
return self.start <= other.end <= self.end or self.start <= other.start <= self.end return self.start < other.end <= self.end or self.start <= other.start < self.end
class AKOrgaMessage(models.Model): class AKOrgaMessage(models.Model):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment