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

@ -90,6 +90,12 @@ class Comment(Base):
if option.poll_voted(v): return True
return False
@property
@lazy
def controversial(self):
if self.downvotes > 5 and 0.25 < self.upvotes / self.downvotes < 4: return True
return False
@property
@lazy
def created_datetime(self):