wtf
This commit is contained in:
parent
38b7abca48
commit
4026b8e3f2
1 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,11 @@ class Comment(Base):
|
||||||
|
|
||||||
def total_choice_voted(self, v):
|
def total_choice_voted(self, v):
|
||||||
if 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()
|
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
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue