forked from rDrama/rDrama
parent
ba5bfc2462
commit
47fdc8e870
|
@ -71,7 +71,7 @@ def execute_snappy(post:Submission, v:User):
|
||||||
|
|
||||||
body = random.choice(SNAPPY_CHOICES).strip()
|
body = random.choice(SNAPPY_CHOICES).strip()
|
||||||
if body.startswith('▼') or body.startswith(':#marseydownvote'):
|
if body.startswith('▼') or body.startswith(':#marseydownvote'):
|
||||||
body = body[1:]
|
if body.startswith('▼'): body = body[1:]
|
||||||
vote = Vote(user_id=SNAPPY_ID,
|
vote = Vote(user_id=SNAPPY_ID,
|
||||||
vote_type=-1,
|
vote_type=-1,
|
||||||
submission_id=post.id,
|
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')
|
flag = Flag(post_id=post.id, user_id=SNAPPY_ID, reason='Retard')
|
||||||
g.db.add(flag)
|
g.db.add(flag)
|
||||||
elif body.startswith('▲') or body.startswith(':#marseyupvote'):
|
elif body.startswith('▲') or body.startswith(':#marseyupvote'):
|
||||||
body = body[1:]
|
if body.startswith('▲'): body = body[1:]
|
||||||
vote = Vote(user_id=SNAPPY_ID,
|
vote = Vote(user_id=SNAPPY_ID,
|
||||||
vote_type=1,
|
vote_type=1,
|
||||||
submission_id=post.id,
|
submission_id=post.id,
|
||||||
|
|
Loading…
Reference in New Issue