From 9ba3368ee326da6ea804986439091454e95cda91 Mon Sep 17 00:00:00 2001 From: Aryan Bhosale <36108149+aryanbhosale@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:37:30 +0530 Subject: [PATCH] National GSP System tags added to the router in their respective files (#322) * National tag FastAPI in national.py * GSP tag FastAPI in gsp.py * System tag FastAPI in system.py --- src/gsp.py | 4 +++- src/national.py | 4 +++- src/system.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gsp.py b/src/gsp.py index 4b8a4bcf..c520415f 100644 --- a/src/gsp.py +++ b/src/gsp.py @@ -33,7 +33,9 @@ adjust_limit = float(os.getenv("ADJUST_MW_LIMIT", 0.0)) -router = APIRouter() +router = APIRouter( + tags=["GSP"], +) NationalYield = GSPYield diff --git a/src/national.py b/src/national.py index 92996de3..5c37d93d 100644 --- a/src/national.py +++ b/src/national.py @@ -24,7 +24,9 @@ adjust_limit = float(os.getenv("ADJUST_MW_LIMIT", 0.0)) get_plevels = bool(os.getenv("GET_PLEVELS", True)) -router = APIRouter() +router = APIRouter( + tags=["National"], +) @router.get( diff --git a/src/system.py b/src/system.py index 4e6da2af..26ec129f 100644 --- a/src/system.py +++ b/src/system.py @@ -19,7 +19,9 @@ logger = structlog.stdlib.get_logger() -router = APIRouter() +router = APIRouter( + tags=["System"], +) NationalYield = GSPYield