aboutsummaryrefslogtreecommitdiffstats
path: root/database.py
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmail.com>2018-09-18 18:07:12 +0200
committerFulgen301 <tokmajigeorge@gmail.com>2018-09-18 18:07:12 +0200
commitb39f368e5626b1bc59fa452a032bc2de71249ee2 (patch)
tree956c4502ad100d19876fb7f8ba986e714c2da2e3 /database.py
parentdb8765a3c75a705954c78bac0c9e5e24aeb18d6d (diff)
downloadparry-b39f368e5626b1bc59fa452a032bc2de71249ee2.tar.gz
parry-b39f368e5626b1bc59fa452a032bc2de71249ee2.zip
database: Don't return a dummy username if there's no author
Diffstat (limited to 'database.py')
-rw-r--r--database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.py b/database.py
index 89f769f..55bfa12 100644
--- a/database.py
+++ b/database.py
@@ -64,7 +64,7 @@ class Upload(Base):
return {
"id" : self.id,
"title" : self.title,
- "author" : self.author.json() if self.author else {"name" : "N/A"},
+ "author" : self.author.json() if self.author else {"name" : ""},
"description" : self.description,
"slug" : self.slug,
"tags" : self.tags,