bbbbbbbbbbbbbbbbbbbbbbb

This commit is contained in:
Aevann1 2022-01-14 13:53:38 +02:00
parent ffb70d1bf4
commit 080a9e6455
3 changed files with 19 additions and 8 deletions

View file

@ -1133,12 +1133,16 @@ def submit_post(v):
cache.delete_memoized(changeloglist)
if v.id in AUTO_UPVOTE_IDS:
autovote = Vote(user_id=TAX_RECEIVER_ID, submission_id=new_post.id, vote_type=1)
autovote = Vote(user_id=CARP_ID, submission_id=new_post.id, vote_type=1)
g.db.add(autovote)
v.coins += 1
v.truecoins += 1
autovote = Vote(user_id=AEVANN_ID, submission_id=new_post.id, vote_type=1)
g.db.add(autovote)
autovote = Vote(user_id=CRAT_ID, submission_id=new_post.id, vote_type=1)
g.db.add(autovote)
v.coins += 3
v.truecoins += 3
g.db.add(v)
new_post.upvotes += 1
new_post.upvotes += 3
g.db.add(new_post)
g.db.commit()