mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-11 15:33:12 +08:00
fix(config): 强制指定 quote_mode ,避免后续依赖升级,默认值不再是 always。
This commit is contained in:
@@ -429,7 +429,8 @@ class Settings(BaseSettings, ConfigModel, LogConfigModel):
|
|||||||
else:
|
else:
|
||||||
value_to_write = str(converted_value) if converted_value is not None else ""
|
value_to_write = str(converted_value) if converted_value is not None else ""
|
||||||
|
|
||||||
set_key(SystemUtils.get_env_path(), field.name, value_to_write)
|
set_key(dotenv_path=SystemUtils.get_env_path(), key_to_set=field.name, value_to_set=value_to_write,
|
||||||
|
quote_mode="always")
|
||||||
if is_converted:
|
if is_converted:
|
||||||
logger.info(f"配置项 '{field.name}' 已自动修正并写入到 'app.env' 文件")
|
logger.info(f"配置项 '{field.name}' 已自动修正并写入到 'app.env' 文件")
|
||||||
return True, message
|
return True, message
|
||||||
|
|||||||
Reference in New Issue
Block a user