From 4871dbe14c0164cb73260b0db6843c010f83c635 Mon Sep 17 00:00:00 2001 From: Bluefissure Date: Tue, 7 Mar 2023 16:38:47 -0600 Subject: [PATCH] Update config.py --- module/conf/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/conf/config.py b/module/conf/config.py index 462e1e93..56a88c43 100644 --- a/module/conf/config.py +++ b/module/conf/config.py @@ -52,7 +52,8 @@ class Settings: for key, section in ENV_TO_ATTR.items(): for env, attr in section.items(): if env in os.environ: - settings[key][env] = self._val_from_env(env, attr) + attr_name = attr[0] if isinstance(attr, tuple) else attr + settings[key][attr_name] = self._val_from_env(env, attr) with open(CONFIG_PATH, "w") as f: json.dump(settings, f, indent=4) return settings