same as last commit

pull/195/head
Aevann 2023-08-23 00:38:12 +03:00
parent f760574e3a
commit 3b6275d6d5
1 changed files with 1 additions and 0 deletions

View File

@ -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)