Skip to content

Commit

Permalink
Merge pull request #62 from EBI-G2P/update/lgd_comments
Browse files Browse the repository at this point in the history
Update LGD record endpoint to display user name
  • Loading branch information
seeta-ramaraju authored Nov 13, 2024
2 parents 6d64bf9 + aed140e commit 37910c4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ def get_comments(self, id):
for comment in lgd_comments:
text = { 'text':comment.comment,
'date':comment.date }
# authenticated users can have access to the user name
if authenticated_user == 1:
text['user'] = f"{comment.user.first_name} {comment.user.last_name}"
data.append(text)

return data
Expand Down

0 comments on commit 37910c4

Please sign in to comment.