Skip to content

Commit

Permalink
Merge branch '272-emin-add-unittests' of https://github.com/bounswe/b…
Browse files Browse the repository at this point in the history
…ounswe2024group9 into 272-emin-add-unittests
  • Loading branch information
serhan-cakmak committed Nov 25, 2024
2 parents d5de453 + 28e9e45 commit f4b2d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_project_491/django_app/views/question_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def mark_as_answered(request, question_id : int) -> HttpResponse:
if author.user_id != request_user_id:
return JsonResponse({'error': 'Only the owner of the question can mark it as answered'}, status=403)

question.mark_as_answered()
# question.mark_as_answered() #TODO ADD COMMENT ID HERE

return JsonResponse({'success': 'Question marked as answered successfully'}, status=200)

Expand Down

0 comments on commit f4b2d45

Please sign in to comment.