diff --git a/biscuit/apps/chronos/models.py b/biscuit/apps/chronos/models.py index 0e054fb99fb3c760377119b15ebda18cd3fc6687..4040d4e1ca5c567df28deb43794ddaea9f974d21 100644 --- a/biscuit/apps/chronos/models.py +++ b/biscuit/apps/chronos/models.py @@ -43,7 +43,7 @@ class LessonPeriodQuerySet(models.QuerySet): def within_dates(self, start: date, end: date): """ Filter for all lessons within a date range. """ - return self.filter(lesson__date_start__gte=start, lesson__date_end__lte=end) + return self.filter(lesson__date_start__lte=start, lesson__date_end__gte=end) def on_day(self, day: date): """ Filter for all lessons on a certain day. """