improve CalendarConfig.change function

This commit is contained in:
Jörn-Michael Miehe 2023-09-21 13:26:33 +02:00
parent be6c03c84a
commit c35fe495dc

View file

@ -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()),
)