From 90445486300a633228965dfe4812c9a58adf86d3 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 11 Oct 2022 11:29:14 -0700 Subject: [PATCH] forgot to actually execute the query --- files/routes/votes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/votes.py b/files/routes/votes.py index 81b2df579c..94885cfac4 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -69,6 +69,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): existing = existing.filter_by(comment_id=target.id) else: abort(400) + existing = existing.one_or_none() if DOUBLE_XP_ENABLED > 0: if not existing and int(time.time()) > DOUBLE_XP_ENABLED: