mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +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(
|
await WebDAV.write_str(
|
||||||
path=f"files/{cfg.puzzle.calendar}",
|
path=f"files/{cfg.puzzle.calendar}",
|
||||||
content=tomli_w.dumps(
|
content=tomli_w.dumps(self.model_dump()),
|
||||||
self.model_dump(
|
|
||||||
exclude_defaults=True,
|
|
||||||
exclude_unset=True,
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue