From c32a1a1f905aafd3da5647d43e5eecefc1c92ee8 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 10 Jan 2024 10:53:34 +0200 Subject: [PATCH] app: set correct version in FastAPI metadata --- app/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 4d362995..3cb64790 100644 --- a/app/main.py +++ b/app/main.py @@ -29,6 +29,7 @@ from app.internal.command_endpoints.main import init_command_endpoint from app.internal.was import ( build_msg, + get_settings, get_tz_config, ) @@ -50,12 +51,14 @@ level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') +settings = get_settings() + app = FastAPI(title="Willow Application Server", description="Willow Management API", - version="0.1", openapi_url="/openapi.json", docs_url="/docs", - redoc_url="/redoc") + redoc_url="/redoc", + version=settings.was_version) log = logging.getLogger("WAS") try: