Skip to content
Snippets Groups Projects
Commit 029a65ab authored by Julian's avatar Julian
Browse files

Simplify comparison

parent 24fcf2c2
No related branches found
No related tags found
1 merge request!43Resolve "Make Alsijil work with current core"
......@@ -248,7 +248,7 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse:
for week in weeks:
day = week[lesson_period.period.weekday - 1]
if lesson_period.lesson.date_start <= day and lesson_period.lesson.date_end >= day:
if lesson_period.lesson.date_start <= day <= lesson_period.lesson.date_end:
documentations = list(
filter(lambda d: d.week == week.week, lesson_period.documentations.all(),)
)
......
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