From 716912b6309a096afb2c1a0b1a6dced6be78bae7 Mon Sep 17 00:00:00 2001 From: jelanmathewjames <72068016+jelanmathewjames@users.noreply.github.com> Date: Sat, 13 Jul 2024 12:49:32 +0530 Subject: [PATCH] refactor: update structure of badgesapi response structure --- api/dashboard/profile/profile_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/dashboard/profile/profile_view.py b/api/dashboard/profile/profile_view.py index 88830d4e..db20a97a 100644 --- a/api/dashboard/profile/profile_view.py +++ b/api/dashboard/profile/profile_view.py @@ -430,7 +430,7 @@ def get(self, request, muid): response_data = {"full_name": user.full_name, "completed_tasks":[]} for tag in hastags: if log := KarmaActivityLog.objects.filter(user=user, task__hashtag=tag).first(): - response_data["completed_tasks"] = log.task.title + response_data["completed_tasks"].append(log.task.title) return CustomResponse(response=response_data).get_success_response() except User.DoesNotExist: return CustomResponse(