Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanaktas0 committed Dec 25, 2023
1 parent c338952 commit fd1da39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ def get_profile(request):
node = Node.objects.get(node_id=node_id)
authors = []
for cont in node.contributors.all():
user = User.objects.get(id=cont.user_id)
authors.append({'name': user.first_name, 'surname': user.last_name, 'username': user.username})
user1 = User.objects.get(id=cont.user_id)
authors.append({'name': user1.first_name, 'surname': user1.last_name, 'username': user1.username})
node_infos.append({'id':node_id,'title':node.node_title,'date':node.publish_date,'authors':authors})

semantic_tags = []
Expand Down

0 comments on commit fd1da39

Please # to comment.