Skip to content

Commit

Permalink
Merge pull request #519 from bounswe/profile-get-bug-fix
Browse files Browse the repository at this point in the history
Profile GET API bug fix
  • Loading branch information
hakanaktas0 authored Nov 27, 2023
2 parents b72d2d3 + ea449f2 commit 6e26a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def get_profile(request):
'answerer_id':ans.answerer.id, 'question_content':ans.question_content,
'answer_content':ans.answer_content,'answer_date':ans.answered_at,'is_answered':1})

user_asked_qs = Question.objects.filter(asker=cont[0].id)
user_asked_qs = Question.objects.filter(asker=basic_user.id)
for q in user_asked_qs:
asker_user = User.objects.get(id=q.asker.user_id)
if q.answerer == None:
Expand Down

0 comments on commit 6e26a5c

Please sign in to comment.