mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-24 21:43:00 +00:00
sort doors on set
This commit is contained in:
parent
2e0004bfcb
commit
a0268f52b9
1 changed files with 4 additions and 1 deletions
|
@ -45,5 +45,8 @@ async def put_doors(
|
|||
Türchen setzen
|
||||
"""
|
||||
|
||||
cfg.puzzle.doors = doors
|
||||
cfg.puzzle.doors = sorted(
|
||||
doors,
|
||||
key=lambda door: door.day,
|
||||
)
|
||||
await set_config(cfg)
|
||||
|
|
Loading…
Reference in a new issue