From fbaa3984a0a570b58941bc3e528cde74509991ec Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 1 Oct 2022 19:37:59 +0200 Subject: [PATCH] small adjustment to prev commit, making it an "elif" --- files/helpers/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index cb170e2ac..b7b9f16ec 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -168,7 +168,7 @@ def execute_snappy(post, v): post.stickied = "Snappy" post.stickied_utc = int(time.time()) + 3600 - if SITE_NAME == 'rDrama' and body.startswith(':#marseyban:'): + elif SITE_NAME == 'rDrama' and body.startswith(':#marseyban:'): days = 0.01 reason = f'/post/{post.id}' v.ban(admin=snappy, reason=reason, days=days)