From 79be14ea4ee388eb111bc39cca74aa2e8028332e Mon Sep 17 00:00:00 2001
From: Michael Bauer <michael-bauer@posteo.de>
Date: Wed, 15 May 2024 11:34:39 +0200
Subject: [PATCH] Use statisticsByPerson query in StatisticsForPersonCard

---
 .../coursebook/statistics/StatisticsForPersonCard.vue      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue
index a444b6464..e44e26061 100644
--- a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue
+++ b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue
@@ -24,6 +24,8 @@ import StatisticsTardinessCard from "./StatisticsTardinessCard.vue";
 import StatisticsExtraMarksCard from "./StatisticsExtraMarksCard.vue";
 import StatisticsPersonalNotesList from "./StatisticsPersonalNotesList.vue";
 
+import statisticsByPerson from "./statistics.graphql";
+
 export default {
   name: "StatisticsForPersonCard",
   mixins: [personOverviewCardMixin],
@@ -40,5 +42,10 @@ export default {
       default: true,
     },
   },
+  apollo: {
+    statistics: {
+      query: statisticsByPerson,
+    },
+  },
 };
 </script>
-- 
GitLab