mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 21:22:59 +00:00
router.images
: unnecessary "startup"
This commit is contained in:
parent
764c6b16fb
commit
d7818ac93a
1 changed files with 0 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue