This commit is contained in:
Aevann1 2021-11-05 22:10:51 +02:00
parent cc8a75e086
commit 2a557154b0
4 changed files with 24 additions and 5 deletions

View file

@ -78,6 +78,12 @@ class Submission(Base):
def options(self):
return self.comments.filter_by(author_id = AUTOPOLLER_ACCOUNT, level=1)
def total_poll_voted(self, v):
if v:
for option in self.options:
if option.poll_voted(v): return True
return False
@property
@lazy
def created_datetime(self):