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

Add missing distinct to extra mark and custom excuse aggregations

parent fc121ed3
No related branches found
No related tags found
1 merge request!148Resolve "Extra marks and custom excuses (potentially) counted multiple times"
Pipeline #6095 passed
......@@ -448,6 +448,7 @@ def generate_person_list_with_class_register_statistics(
extra_mark.count_label: Count(
"personal_notes",
filter=Q(personal_notes__extra_marks=extra_mark) & school_term_q & groups_q,
distinct=True,
)
}
)
......@@ -460,6 +461,7 @@ def generate_person_list_with_class_register_statistics(
filter=Q(personal_notes__absent=True, personal_notes__excuse_type=excuse_type,)
& school_term_q
& groups_q,
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