make pizza's vote on himself be the first

master
Aevann1 2022-10-02 12:35:04 +02:00
parent 325187e8bb
commit da4ade067d
2 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,7 @@ def comment(v):
if v.id == PIZZASHILL_ID:
for uid in PIZZA_VOTERS:
autovote = CommentVote(user_id=uid, comment_id=c.id, vote_type=1)
autovote.created_utc += 1
g.db.add(autovote)
v.coins += 3
v.truecoins += 3

View File

@ -1031,6 +1031,7 @@ def submit_post(v, sub=None):
if v.id == PIZZASHILL_ID:
for uid in PIZZA_VOTERS:
autovote = Vote(user_id=uid, submission_id=post.id, vote_type=1)
autovote.created_utc += 1
g.db.add(autovote)
v.coins += 3
v.truecoins += 3