This commit is contained in:
Aevann1 2021-07-26 00:11:26 +02:00
parent bc430e5c42
commit 4a8a6dde8c
11 changed files with 22 additions and 90 deletions

View file

@ -265,7 +265,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
@property
def json_raw(self):
data = {'author_name': self.author.username if not self.author.deleted_utc > 0 else None,
data = {'author_name': self.author.username,
'permalink': self.permalink,
'is_banned': bool(self.is_banned),
'deleted_utc': self.deleted_utc,