Skip to content
Snippets Groups Projects
Commit 592425bc authored by Julian's avatar Julian
Browse files

Reformat

parent b3e94ed8
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
...@@ -176,12 +176,9 @@ export default { ...@@ -176,12 +176,9 @@ export default {
}, },
result({ data }) { result({ data }) {
this.$setToolBarTitle( this.$setToolBarTitle(
this.$t( this.$t("alsijil.coursebook.statistics.person_page.title", {
"alsijil.coursebook.statistics.person_page.title", fullName: data.personName.fullName || "???",
{ }),
fullName: data.personName.fullName || "???",
},
)
); );
}, },
}, },
......
...@@ -103,8 +103,12 @@ def annotate_person_statistics_for_school_term( ...@@ -103,8 +103,12 @@ def annotate_person_statistics_for_school_term(
) )
if group: if group:
documentations = documentations.filter( documentations = documentations.filter(
pk__in=Documentation.objects.filter(course__groups=group).values_list("pk", flat=True).union( pk__in=Documentation.objects.filter(course__groups=group)
Documentation.objects.filter(course__groups__parent_groups=group).values_list("pk", flat=True) .values_list("pk", flat=True)
.union(
Documentation.objects.filter(course__groups__parent_groups=group).values_list(
"pk", flat=True
)
) )
) )
docs = list(documentations.values_list("pk", flat=True)) docs = list(documentations.values_list("pk", flat=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