diff options
| -rw-r--r-- | routes/uploads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/uploads.py b/routes/uploads.py index 391827d..5c7d7fc 100644 --- a/routes/uploads.py +++ b/routes/uploads.py @@ -26,7 +26,7 @@ def _add_upload(entry : Upload, session : DBSession): "title" : entry.title, "author" : { "id" : entry.author.id if entry.author is not None else "0" * 24, - "username" : entry.author.username if entry.author is not None else "N/A" + "username" : entry.author.name if entry.author is not None else "N/A" }, "tags" : entry.tags, "files" : [{ @@ -64,7 +64,7 @@ def _add_upload(entry : Upload, session : DBSession): "body" : comment.body, "author" : { "id" : comment.author.id, - "username" : comment.author.username + "username" : comment.author.name }, "upload" : comment.upload.id, "createdAt" : comment.created_at.isoformat(), |
