forked from rDrama/rDrama
make syntax clearer
parent
6a222e5ee5
commit
31dd061b35
|
@ -133,7 +133,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
target.author.truescore += coin_delta
|
target.author.truescore += coin_delta
|
||||||
g.db.add(target.author)
|
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
|
vote = None
|
||||||
if vote_cls == Vote:
|
if vote_cls == Vote:
|
||||||
vote = Vote(user_id=v.id,
|
vote = Vote(user_id=v.id,
|
||||||
|
|
Loading…
Reference in New Issue