fix my upsoren being added before OP's upsoren

master
Aevann1 2022-06-19 23:40:07 +02:00
parent 17c7529977
commit ccd4dfa6ee
1 changed files with 1 additions and 0 deletions

View File

@ -1266,6 +1266,7 @@ def submit_post(v, sub=None):
g.db.add(post) g.db.add(post)
if post.sub and AEVANN_ID and v.id != AEVANN_ID: if post.sub and AEVANN_ID and v.id != AEVANN_ID:
g.db.flush()
autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1) autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1)
g.db.add(autovote) g.db.add(autovote)
v.coins += 1 v.coins += 1