dfs
This commit is contained in:
parent
ec5b09fb1e
commit
14523710bc
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ def api_vote_poll(comment_id, v):
|
|||
|
||||
comment_id = int(comment_id)
|
||||
|
||||
existing = g.db.query(CommentVote).options(lazyload('*')).filter_by(user_id=v.id, comment_id=comment.id).first()
|
||||
existing = g.db.query(CommentVote).options(lazyload('*')).filter_by(user_id=v.id, comment_id=comment_id).first()
|
||||
|
||||
if existing and existing.vote_type == vote: return "", 204
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue