Skip to content

Commit

Permalink
Merge pull request #2171 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jelanmathewjames authored Jul 13, 2024
2 parents 494e197 + 710a7ca commit 897c4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dashboard/profile/profile_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 897c4c2

Please sign in to comment.