This commit is contained in:
Aevann1 2021-12-27 04:09:06 +02:00
parent 5624bd21cb
commit 6d1bc0f2eb
25 changed files with 93 additions and 86 deletions

View file

@ -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