forked from MarseyWorld/MarseyWorld
make pizza's vote on himself be the first
parent
325187e8bb
commit
da4ade067d
|
@ -562,6 +562,7 @@ def comment(v):
|
||||||
if v.id == PIZZASHILL_ID:
|
if v.id == PIZZASHILL_ID:
|
||||||
for uid in PIZZA_VOTERS:
|
for uid in PIZZA_VOTERS:
|
||||||
autovote = CommentVote(user_id=uid, comment_id=c.id, vote_type=1)
|
autovote = CommentVote(user_id=uid, comment_id=c.id, vote_type=1)
|
||||||
|
autovote.created_utc += 1
|
||||||
g.db.add(autovote)
|
g.db.add(autovote)
|
||||||
v.coins += 3
|
v.coins += 3
|
||||||
v.truecoins += 3
|
v.truecoins += 3
|
||||||
|
|
|
@ -1031,6 +1031,7 @@ def submit_post(v, sub=None):
|
||||||
if v.id == PIZZASHILL_ID:
|
if v.id == PIZZASHILL_ID:
|
||||||
for uid in PIZZA_VOTERS:
|
for uid in PIZZA_VOTERS:
|
||||||
autovote = Vote(user_id=uid, submission_id=post.id, vote_type=1)
|
autovote = Vote(user_id=uid, submission_id=post.id, vote_type=1)
|
||||||
|
autovote.created_utc += 1
|
||||||
g.db.add(autovote)
|
g.db.add(autovote)
|
||||||
v.coins += 3
|
v.coins += 3
|
||||||
v.truecoins += 3
|
v.truecoins += 3
|
||||||
|
|
Loading…
Reference in New Issue