From ba6b85391076e4992e28e7e81aa73b3ee8fbc8a8 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 33cc373..f852ee9 100644 --- a/app/main.py +++ b/app/main.py @@ -31,6 +31,7 @@ build_msg, get_tz_config, ) +from app.settings import get_settings from .internal.client import Client from .internal.connmgr import ConnMgr @@ -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: