sort doors on set

This commit is contained in:
Jörn-Michael Miehe 2023-09-07 21:18:08 +00:00
parent 2e0004bfcb
commit a0268f52b9

View file

@ -45,5 +45,8 @@ async def put_doors(
Türchen setzen Türchen setzen
""" """
cfg.puzzle.doors = doors cfg.puzzle.doors = sorted(
doors,
key=lambda door: door.day,
)
await set_config(cfg) await set_config(cfg)