This commit is contained in:
Aevann1 2022-03-03 23:01:37 +02:00
parent 38b7abca48
commit 4026b8e3f2

View file

@ -101,7 +101,11 @@ class Comment(Base):
def total_choice_voted(self, v):
if v:
try:
return g.db.query(CommentVote).filter(CommentVote.user_id == v.id, CommentVote.comment_id.in_([x.id for x in self.choices])).all()
except:
print(self.id, flush=True)
return False
return False
@property