From 1b7b7770eaaed7b4ce0d1a54d8c26ce539a94f60 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Fri, 3 Nov 2023 11:33:48 +0100 Subject: [PATCH] fix: take unique `_id` for `FeedbackStatisticsRecordType` --- server/vbv_lernwelt/dashboard/graphql/types/attendance.py | 2 +- server/vbv_lernwelt/dashboard/graphql/types/feedback.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/vbv_lernwelt/dashboard/graphql/types/attendance.py b/server/vbv_lernwelt/dashboard/graphql/types/attendance.py index 3f7488ae..0ef5de9a 100644 --- a/server/vbv_lernwelt/dashboard/graphql/types/attendance.py +++ b/server/vbv_lernwelt/dashboard/graphql/types/attendance.py @@ -72,7 +72,7 @@ def attendance_day_presences( records.append( PresenceRecordStatisticsType( - _id=attendance_day.id, # noqa + _id=f"attendance_day:{attendance_day.id}", # noqa course_session_id=course_session.id, # noqa generation=course_session.generation, # noqa circle_id=circle.id, # noqa diff --git a/server/vbv_lernwelt/dashboard/graphql/types/feedback.py b/server/vbv_lernwelt/dashboard/graphql/types/feedback.py index 067f10b1..82922847 100644 --- a/server/vbv_lernwelt/dashboard/graphql/types/feedback.py +++ b/server/vbv_lernwelt/dashboard/graphql/types/feedback.py @@ -106,7 +106,7 @@ def circle_feedback_average( details_url = f"/course/{course_slug}/cockpit/feedback/{circle_id}?courseSessionId={course_session_id}" records.append( FeedbackStatisticsRecordType( - _id=circle_id, # noqa + _id=f"circle:{circle_id}-course_session:{course_session_id}", # noqa course_session_id=course_session_id, # noqa generation=generation, # noqa circle_id=circle_id, # noqa