From 3b6275d6d5e9dc0e027014eb174ebda201c4f3ef Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 00:38:12 +0300 Subject: [PATCH] same as last commit --- files/routes/votes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/votes.py b/files/routes/votes.py index 67d0bd7fc..e2d593e58 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -40,6 +40,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): coin_mult = 1 + g.db.flush() existing = g.db.query(vote_cls).filter_by(user_id=v.id) if vote_cls == Vote: existing = existing.filter_by(post_id=target.id)