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

@ -169,10 +169,16 @@ class Comment(Base):
years = int(months / 12)
return f"{years}yr ago"
@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