This commit is contained in:
Aevann1 2022-02-07 17:24:37 +02:00
parent 2aaa54df59
commit 7fee47f48f

View file

@ -104,7 +104,7 @@ class Submission(Base):
return False
def total_choice_voted(self, v):
if v:
if v and self.choices:
return g.db.query(CommentVote).filter(CommentVote.user_id == v.id, CommentVote.comment_id.in_(tuple(x.id for x in self.choices))).all()
return False