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: """