fds
This commit is contained in:
parent
9f985a2591
commit
e0204a9693
10 changed files with 30 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue