diff options
| author | Fulgen301 <tokmajigeorge@gmail.com> | 2018-08-26 20:24:53 +0200 |
|---|---|---|
| committer | Fulgen301 <tokmajigeorge@gmail.com> | 2018-08-26 20:24:53 +0200 |
| commit | 0184fbb68c8bf1d8d1a123929dfab0497d5236af (patch) | |
| tree | e9d3030731cbed856c4575050dad08b89089722b /routes/uploads.py | |
| parent | 305383c4b85dd6c826cb41faa42fd97015f33067 (diff) | |
| download | parry-0184fbb68c8bf1d8d1a123929dfab0497d5236af.tar.gz parry-0184fbb68c8bf1d8d1a123929dfab0497d5236af.zip | |
uploads: Fix wrong attribute name
Diffstat (limited to 'routes/uploads.py')
| -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(), |
