From 3b1da95ed00365ae2c6a93841972cbe0e715709f Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Fri, 24 May 2024 15:27:18 -0400 Subject: [PATCH] system-server: Manual fixups. --- system-server/system_server/settings/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system-server/system_server/settings/settings.py b/system-server/system_server/settings/settings.py index d41c255f981..d7b90658e8f 100644 --- a/system-server/system_server/settings/settings.py +++ b/system-server/system_server/settings/settings.py @@ -66,14 +66,16 @@ class SystemServerSettings(BaseSettings): " the splash screen changes when the flag is enabled/disabled." ), ) - model_config = SettingsConfigDict(env_file=Environment().dot_env_path, env_prefix="OT_SYSTEM_SERVER_") + model_config = SettingsConfigDict( + env_file=Environment().dot_env_path, env_prefix="OT_SYSTEM_SERVER_" + ) def save_settings(settings: SystemServerSettings) -> bool: """Save the settings to the dotenv file.""" env_path = Environment().dot_env_path env_path = env_path or f"{settings.persistence_directory}/system.env" - prefix = settings.Config.env_prefix + prefix = settings.model_config.get("env_prefix") try: for key, val in settings.dict().items(): name = f"{prefix}{key}"