Skip to content

Commit

Permalink
Fix bug with overlap detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed May 7, 2024
1 parent ec87629 commit 5a5d16c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pretalx/schedule/models/schedule.py
Expand Up @@ -432,6 +432,7 @@ def get_talk_warnings(
TalkSlot.objects.filter(
schedule=self, submission__speakers__in=[speaker]
)
.exclude(pk=talk.pk)
.filter(
models.Q(start__lt=talk.start, end__gt=talk.start)
| models.Q(start__lt=talk.real_end, end__gt=talk.real_end)
Expand Down

0 comments on commit 5a5d16c

Please sign in to comment.