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