Skip to content

Commit

Permalink
Merge pull request #2168 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 14faadc + f245492 commit 494e197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/dashboard/profile/profile_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ 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"] = log.task.title
return CustomResponse(response=response_data).get_success_response()
except User.DoesNotExist:
return CustomResponse(
response="The given muid seems to be invalid"
).get_failure_response()
).get_failure_response()

0 comments on commit 494e197

Please sign in to comment.