Skip to content
Snippets Groups Projects
Verified Commit d35f7db9 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix missing returns and assignments in relation to supervision querysets

parent 60ad9b7d
No related branches found
No related tags found
1 merge request!107Fix missing returns and assignments in relation to supervision querysets
Pipeline #4862 passed
...@@ -522,7 +522,7 @@ class SupervisionQuerySet(ValidityRangeRelatedQuerySet, WeekQuerySetMixin): ...@@ -522,7 +522,7 @@ class SupervisionQuerySet(ValidityRangeRelatedQuerySet, WeekQuerySetMixin):
def filter_by_weekday(self, weekday: int): def filter_by_weekday(self, weekday: int):
"""Filter supervisions by weekday.""" """Filter supervisions by weekday."""
self.filter( return self.filter(
Q(break_item__before_period__weekday=weekday) Q(break_item__before_period__weekday=weekday)
| Q(break_item__after_period__weekday=weekday) | Q(break_item__after_period__weekday=weekday)
) )
......
...@@ -129,7 +129,7 @@ def build_timetable( ...@@ -129,7 +129,7 @@ def build_timetable(
) )
if is_person: if is_person:
supervisions.filter_by_weekday(date_ref.weekday()) supervisions = supervisions.filter_by_weekday(date_ref.weekday())
supervisions_per_period_after = {} supervisions_per_period_after = {}
for supervision in supervisions: for supervision in supervisions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment