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

Sort substitutions by actually shown groups

parent 60ad9b7d
No related branches found
No related tags found
1 merge request!110Resolve "Sort the list by parent groups if displaying parent groups is activated"
Pipeline #4881 passed
......@@ -248,7 +248,7 @@ def build_substitutions_list(wanted_day: date) -> List[dict]:
start_period = None
for i, sub in enumerate(subs):
if not sub.cancelled_for_teachers:
sort_a = sub.lesson_period.lesson.group_names
sort_a = sub.lesson_period.lesson.groups_to_show_names
else:
sort_a = f"Z.{sub.lesson_period.lesson.teacher_names}"
......
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