From b39f368e5626b1bc59fa452a032bc2de71249ee2 Mon Sep 17 00:00:00 2001 From: Fulgen301 Date: Tue, 18 Sep 2018 18:07:12 +0200 Subject: database: Don't return a dummy username if there's no author --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'database.py') 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, -- cgit v1.2.3-54-g00ecf