fds
This commit is contained in:
parent
5624bd21cb
commit
6d1bc0f2eb
25 changed files with 93 additions and 86 deletions
|
@ -65,6 +65,11 @@ class Submission(Base):
|
|||
def __repr__(self):
|
||||
return f"<Submission(id={self.id})>"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def controversial(self):
|
||||
if self.downvotes > 5 and 0.25 < self.upvotes / self.downvotes < 4: return True
|
||||
return False
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue