make syntax clearer

pull/83/head
Aevann 2022-12-23 00:36:50 +02:00
parent 6a222e5ee5
commit 31dd061b35
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.author.truescore += coin_delta
g.db.add(target.author)
real = new != 1 or (not alt and v.is_votes_real)
real = new == -1 or (not alt and v.is_votes_real)
vote = None
if vote_cls == Vote:
vote = Vote(user_id=v.id,