From 0337c659a2324a1cb6232df5d7cf4b5ec1d1f378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 11 Sep 2023 19:40:36 +0000 Subject: [PATCH] Depends(shuffle_solution) --- api/advent22_api/routers/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/advent22_api/routers/admin.py b/api/advent22_api/routers/admin.py index 87b63f0..131b910 100644 --- a/api/advent22_api/routers/admin.py +++ b/api/advent22_api/routers/admin.py @@ -59,9 +59,8 @@ async def get_private_config( _: None = Depends(require_admin), cfg: Config = Depends(get_config), cal_cfg: CalendarConfig = Depends(get_calendar_config), + shuffled_solution: str = Depends(shuffle_solution), ) -> PrivateConfig: - shuffled_solution = await shuffle_solution(cfg) - return PrivateConfig( puzzle=PrivatePuzzle( title="Adventskalender 2023",