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

Add distinct to group-based statistic views (extra marks and excuse types)

parent 1ea8aeab
No related branches found
No related tags found
1 merge request!305Add distinct to group-based statistic views (extra marks and excuse types)
Pipeline #87533 passed
......@@ -13,6 +13,7 @@ Changed
~~~~~~~
* Use new icon set inside of models and templates
* Extra marks and excused absences were counted multiple times in some class register views.
`2.1.1`_ - 2022-09-01
---------------------
......
......@@ -471,6 +471,7 @@ def generate_person_list_with_class_register_statistics(
extra_mark.count_label: Count(
"filtered_personal_notes",
filter=Q(filtered_personal_notes__extra_marks=extra_mark),
distinct=True,
)
}
)
......@@ -484,6 +485,7 @@ def generate_person_list_with_class_register_statistics(
filtered_personal_notes__absent=True,
filtered_personal_notes__excuse_type=excuse_type,
),
distinct=True,
)
}
)
......
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