config exclude
This commit is contained in:
parent
d05e3b94be
commit
2e0004bfcb
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ async def get_config() -> Config:
|
|||
|
||||
|
||||
async def set_config(cfg: Config) -> None:
|
||||
txt = tomli_w.dumps(cfg.model_dump())
|
||||
txt = tomli_w.dumps(
|
||||
cfg.model_dump(
|
||||
exclude_defaults=True,
|
||||
exclude_unset=True,
|
||||
)
|
||||
)
|
||||
|
||||
await dav_write_textfile_content(
|
||||
path=SETTINGS.config_filename,
|
||||
|
|
Loading…
Reference in a new issue