Aevann 2023-01-28 14:01:18 +02:00
parent ba5bfc2462
commit 47fdc8e870
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ def execute_snappy(post:Submission, v:User):
body = random.choice(SNAPPY_CHOICES).strip()
if body.startswith('') or body.startswith(':#marseydownvote'):
body = body[1:]
if body.startswith(''): body = body[1:]
vote = Vote(user_id=SNAPPY_ID,
vote_type=-1,
submission_id=post.id,
@ -86,7 +86,7 @@ def execute_snappy(post:Submission, v:User):
flag = Flag(post_id=post.id, user_id=SNAPPY_ID, reason='Retard')
g.db.add(flag)
elif body.startswith('') or body.startswith(':#marseyupvote'):
body = body[1:]
if body.startswith(''): body = body[1:]
vote = Vote(user_id=SNAPPY_ID,
vote_type=1,
submission_id=post.id,