From 0e2bde4cc909c7f8c45fd02774bf9e331b0b6a02 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 15 Jul 2024 20:41:51 +0500 Subject: [PATCH] fix: get user badges --- openedx/features/sdaia_features/course_progress/api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/sdaia_features/course_progress/api/v1/views.py b/openedx/features/sdaia_features/course_progress/api/v1/views.py index cb54a50e4d73..8f0fea802231 100644 --- a/openedx/features/sdaia_features/course_progress/api/v1/views.py +++ b/openedx/features/sdaia_features/course_progress/api/v1/views.py @@ -110,7 +110,7 @@ def get(self, request): user_certificates = get_user_certificates(username) ############ USER BADGES ############ - user_badges = BadgeAssertion.objects.values( + user_badges = BadgeAssertion.objects.filter(user=user).values( "image_url", "assertion_url", "created",