From da4ade067dc5df252f81b1570afe15e427596064 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 2 Oct 2022 12:35:04 +0200 Subject: [PATCH] make pizza's vote on himself be the first --- files/routes/comments.py | 1 + files/routes/posts.py | 1 + 2 files changed, 2 insertions(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 7d5b2e864..dfa0b359f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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 diff --git a/files/routes/posts.py b/files/routes/posts.py index 062b1dd14..e5bfec1ca 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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