diff --git a/api/advent22_api/config.py b/api/advent22_api/config.py index 2e6fa18..287a318 100644 --- a/api/advent22_api/config.py +++ b/api/advent22_api/config.py @@ -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,