From 78c53c1954f3bda7fbd7bd2682e1beb36fd8dabb Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 6 Nov 2022 06:12:23 -0600 Subject: [PATCH] debug --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index c81cc9f14..32e1e47fa 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -54,7 +54,7 @@ def settings_profile_post(v): current_value = getattr(v, column_name) if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and current_value > 1: abort(403, "Cannot disable the word filter after you've already set it permanently!") - request_flag = int(request.values.get(request_name, '') == 'true') + request_flag = request.values.get(request_name, '') == 'true' #int(request.values.get(request_name, '') == 'true') if current_value and request_flag and request.values.get("permanent", '') == 'true' and request.values.get("username") == v.username: if v.client: abort(403, "Cannot set filters permanently from the API") request_flag = int(time.time())