From d7818ac93a5e1c55eb431889751595268e75bfe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 12 Sep 2023 20:46:25 +0000 Subject: [PATCH] `router.images`: unnecessary "startup" --- api/advent22_api/routers/images.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/advent22_api/routers/images.py b/api/advent22_api/routers/images.py index 3f01981..35dfc76 100644 --- a/api/advent22_api/routers/images.py +++ b/api/advent22_api/routers/images.py @@ -3,7 +3,6 @@ from fastapi.responses import StreamingResponse from PIL import Image from ..core.calendar_config import CalendarConfig, get_calendar_config -from ..core.config import get_config from ..core.depends import get_day_image from ..core.helpers import api_return_image, load_image from ._security import user_can_view_day, user_is_admin @@ -11,12 +10,6 @@ from ._security import user_can_view_day, user_is_admin router = APIRouter(prefix="/images", tags=["images"]) -@router.on_event("startup") -async def startup() -> None: - cfg = await get_config() - print(cfg.puzzle.solution) - - @router.get( "/background", response_class=StreamingResponse,