Skip to content

Commit

Permalink
system-server: Manual fixups.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed May 28, 2024
1 parent dd461e9 commit 3b1da95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system-server/system_server/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 3b1da95

Please sign in to comment.