From f10a0db1dc7daefbf81ddea68c7b7f73d8665f37 Mon Sep 17 00:00:00 2001 From: Amund Isaksen Date: Wed, 16 Oct 2024 09:05:27 +0200 Subject: [PATCH] Remove duplicated strings --- api/metadata_endpoints.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/metadata_endpoints.py b/api/metadata_endpoints.py index 01cf1c04..570790ae 100644 --- a/api/metadata_endpoints.py +++ b/api/metadata_endpoints.py @@ -30,6 +30,8 @@ from utilities import seconds_to_iso_8601_duration from utilities import convert_cm_to_m +from openapi.openapi_metadata import openapi_metadata + logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) @@ -58,10 +60,8 @@ def datetime_to_iso_string(value: datetime) -> str: def get_landing_page(request): return LandingPageModel( - title="Observations Europe EUMETNET", - description=( - "EDR data service for European environmental observations from EUMETNET," " co-funded by the European Union" - ), + title=openapi_metadata["title"], + description=openapi_metadata["description"], keywords=[ "weather", "temperature",