From c35fe495dc66dbd5321e487448f3129304a59b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 21 Sep 2023 13:26:33 +0200 Subject: [PATCH] improve CalendarConfig.change function --- api/advent22_api/core/calendar_config.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/advent22_api/core/calendar_config.py b/api/advent22_api/core/calendar_config.py index 9b3e618..c0b7fae 100644 --- a/api/advent22_api/core/calendar_config.py +++ b/api/advent22_api/core/calendar_config.py @@ -37,12 +37,7 @@ class CalendarConfig(BaseModel): await WebDAV.write_str( path=f"files/{cfg.puzzle.calendar}", - content=tomli_w.dumps( - self.model_dump( - exclude_defaults=True, - exclude_unset=True, - ) - ), + content=tomli_w.dumps(self.model_dump()), )