From 083042479c48f99e85aeef84f8f6a5d5972a5a49 Mon Sep 17 00:00:00 2001 From: wenfp Date: Mon, 27 Jul 2026 12:37:35 +0800 Subject: [PATCH] update --- app/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index faa684c..e4f804f 100644 --- a/app/config.py +++ b/app/config.py @@ -16,7 +16,9 @@ def load_local_env() -> None: if not line or line.startswith("#") or "=" not in line: continue key, value = line.split("=", 1) - os.environ.setdefault(key.strip(), value.strip().strip('"').strip("'")) + key = key.strip() + if key not in os.environ or os.environ[key] == "": + os.environ[key] = value.strip().strip('"').strip("'") load_local_env()