From 6e33531be306514ed3caf8ab4ba1ab2f49fcb85a Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 00:38:33 -0700 Subject: [PATCH] remove a _FOR_ --- files/helpers/alerts.py | 2 +- files/helpers/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index ba5aac9b6..ffff2e041 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -95,7 +95,7 @@ def NOTIFY_USERS(text, v): notify_users.add(user.id) if SITE_NAME == "WPD" and 'daisy' in text.lower(): - admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_FOR_SPECIFIC_WPD_COMMENTS']).all()] + admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_SPECIFIC_WPD_COMMENTS']).all()] notify_users.update(admin_ids) return notify_users - bots diff --git a/files/helpers/const.py b/files/helpers/const.py index 9394a2a30..b08529e42 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -183,7 +183,7 @@ PERMS = { # Minimum admin_level to perform action. 'NOTIFICATIONS_HOLE_CREATION': 2, 'NOTIFICATIONS_FROM_SHADOWBANNED_USERS': 3, 'NOTIFICATIONS_MODMAIL': 3, - 'NOTIFICATIONS_FOR_SPECIFIC_WPD_COMMENTS': 1, + 'NOTIFICATIONS_SPECIFIC_WPD_COMMENTS': 1, 'MESSAGE_BLOCKED_USERS': 1, 'APPS_MODERATE': 3, 'STREAMERS_MODERATION': 2,