From 558f8d22ffefa125d343c0e3b0ac3d5a0358fd90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 21 Sep 2023 13:22:27 +0200 Subject: [PATCH] mistyped dependency --- api/advent22_api/core/depends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/advent22_api/core/depends.py b/api/advent22_api/core/depends.py index b893f8f..d546356 100644 --- a/api/advent22_api/core/depends.py +++ b/api/advent22_api/core/depends.py @@ -99,7 +99,7 @@ async def get_all_image_names( async def gen_day_auto_image( day: int, cfg: Config = Depends(get_config), - auto_image_names: list[str] = Depends(get_all_auto_image_names), + auto_image_names: dict[int, str] = Depends(get_all_auto_image_names), day_parts: dict[int, str] = Depends(get_all_parts), ) -> Image.Image: """ @@ -131,7 +131,7 @@ async def gen_day_auto_image( async def get_day_image( day: int, cfg: Config = Depends(get_config), - auto_image_names: list[str] = Depends(get_all_auto_image_names), + auto_image_names: dict[int, str] = Depends(get_all_auto_image_names), day_parts: dict[int, str] = Depends(get_all_parts), ) -> Image.Image: """