From 203d74e94975e0db40af8c5b2e9e58b232ee6dcf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 01:16:31 +0200 Subject: [PATCH] dfs --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 8dd9c99c7..b1e5a132e 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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