Depends(shuffle_solution)

This commit is contained in:
Jörn-Michael Miehe 2023-09-11 19:40:36 +00:00
parent 91c2589045
commit 0337c659a2

View file

@ -59,9 +59,8 @@ async def get_private_config(
_: None = Depends(require_admin), _: None = Depends(require_admin),
cfg: Config = Depends(get_config), cfg: Config = Depends(get_config),
cal_cfg: CalendarConfig = Depends(get_calendar_config), cal_cfg: CalendarConfig = Depends(get_calendar_config),
shuffled_solution: str = Depends(shuffle_solution),
) -> PrivateConfig: ) -> PrivateConfig:
shuffled_solution = await shuffle_solution(cfg)
return PrivateConfig( return PrivateConfig(
puzzle=PrivatePuzzle( puzzle=PrivatePuzzle(
title="Adventskalender 2023", title="Adventskalender 2023",