router.images: unnecessary "startup"

This commit is contained in:
Jörn-Michael Miehe 2023-09-12 20:46:25 +00:00
parent 764c6b16fb
commit d7818ac93a

View file

@ -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,