[main] Images images images
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 51s

This commit is contained in:
2024-12-30 21:37:36 +01:00
parent 13bc417d45
commit 7f08417eb1
14 changed files with 27 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ from app.services.image_service import ImageService
class Application:
def __init__(self):
"""Initialize the FastAPI app and configure it."""
self.app = FastAPI(lifespan=self._lifespan_event)
self.app = FastAPI( lifespan = self._lifespan_event )
self._set_image_sizes()
self._setup_static_files()
self._include_routers()
@@ -21,6 +21,7 @@ class Application:
@asynccontextmanager
async def _lifespan_event(self, app: FastAPI):
"""Lifespan event for startup and shutdown logic."""