From a9d99417819e1266e73b9d2e51e9eaf1d550a234 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 9 Dec 2022 19:28:50 -0600 Subject: [PATCH] fix worker boot failure redux --- files/helpers/config/modaction_types.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/helpers/config/modaction_types.py b/files/helpers/config/modaction_types.py index d6378e987..8ac140bed 100644 --- a/files/helpers/config/modaction_types.py +++ b/files/helpers/config/modaction_types.py @@ -331,7 +331,5 @@ MODACTION_TYPES = { MODACTION_PRIVILEGED_TYPES = {'shadowban', 'unshadowban', 'mod_mute_user', 'mod_unmute_user', 'link_accounts', 'delink_accounts'} - -MODACTION_TYPES_FILTERED = deepcopy({t:v for t,v in MODACTION_TYPES.items() if not t in MODACTION_PRIVILEGED_TYPES}) -MODACTION_TYPES_FILTERED.pop("shadowban") -MODACTION_TYPES_FILTERED.pop("unshadowban") +MODACTION_TYPES_FILTERED = deepcopy({t:v for t,v in MODACTION_TYPES.items() + if not t in MODACTION_PRIVILEGED_TYPES})