This commit is contained in:
Aevann1 2022-02-05 13:10:16 +02:00
parent 9f985a2591
commit e0204a9693
10 changed files with 30 additions and 21 deletions

View file

@ -180,10 +180,16 @@ class Submission(Base):
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.edited_utc)))
@property
@lazy
def score(self):
return self.upvotes - self.downvotes
if SITE_NAME == 'Too4You':
@property
@lazy
def score(self):
return self.upvotes
else:
@property
@lazy
def score(self):
return self.upvotes - self.downvotes
@property
@lazy