mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 13:13:00 +00:00
improve CalendarConfig.change function
This commit is contained in:
parent
be6c03c84a
commit
c35fe495dc
1 changed files with 1 additions and 6 deletions
|
@ -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()),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue