diff options
| author | Fulgen301 <tokmajigeorge@gmail.com> | 2018-09-18 18:07:12 +0200 |
|---|---|---|
| committer | Fulgen301 <tokmajigeorge@gmail.com> | 2018-09-18 18:07:12 +0200 |
| commit | b39f368e5626b1bc59fa452a032bc2de71249ee2 (patch) | |
| tree | 956c4502ad100d19876fb7f8ba986e714c2da2e3 /database.py | |
| parent | db8765a3c75a705954c78bac0c9e5e24aeb18d6d (diff) | |
| download | parry-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.py | 2 |
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, |
