From e653e0acd9ec0d6e59cc7a835d726d7a0c15618b Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Sun, 19 May 2024 23:47:32 +0200 Subject: [PATCH] Remove useless dict lookup, as the keys are always the same two --- src/utils/configpanel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/configpanel.py b/src/utils/configpanel.py index 7e72969ab..db7b09f07 100644 --- a/src/utils/configpanel.py +++ b/src/utils/configpanel.py @@ -479,8 +479,10 @@ class ConfigPanel: "changes_validated", "result", "max_progression", + # 'properties' and 'defaults' are used in format_description levels + "properties", + "defaults", ] - forbidden_keywords += format_description["sections"] for _, _, option in self._iterate(): if option["id"] in forbidden_keywords: