forked from MarseyWorld/MarseyWorld
vxc
parent
bcb66c6f72
commit
3b51b37535
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue