vxc
This commit is contained in:
parent
2aaa54df59
commit
7fee47f48f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue