Skip to content

Commit

Permalink
National GSP System tags added to the router in their respective files (
Browse files Browse the repository at this point in the history
#322)

* National tag FastAPI in national.py

* GSP tag FastAPI in gsp.py

* System tag FastAPI in system.py
  • Loading branch information
aryanbhosale authored Mar 11, 2024
1 parent bedc77d commit 9ba3368
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/gsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
adjust_limit = float(os.getenv("ADJUST_MW_LIMIT", 0.0))


router = APIRouter()
router = APIRouter(
tags=["GSP"],
)
NationalYield = GSPYield


Expand Down
4 changes: 3 additions & 1 deletion src/national.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion src/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
logger = structlog.stdlib.get_logger()


router = APIRouter()
router = APIRouter(
tags=["System"],
)
NationalYield = GSPYield


Expand Down

0 comments on commit 9ba3368

Please sign in to comment.