Skip to content

Commit

Permalink
fix: Use version value as a tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-bozbei-ew committed Sep 27, 2023
1 parent f4701aa commit 5de8a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py_ocpi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_application(
_app.include_router(
cpo_router,
prefix=f"/{settings.OCPI_PREFIX}/cpo/{version.value}",
tags=[f"CPO {version}"],
tags=[f"CPO {version.value}"],
)
endpoint = ENDPOINTS[version][RoleEnum.cpo].get(module)
if endpoint:
Expand All @@ -140,7 +140,7 @@ def get_application(
_app.include_router(
emsp_router,
prefix=f"/{settings.OCPI_PREFIX}/emsp/{version.value}",
tags=[f"EMSP {version}"],
tags=[f"EMSP {version.value}"],
)
endpoint = ENDPOINTS[version][RoleEnum.emsp].get(module)
if endpoint:
Expand Down

0 comments on commit 5de8a35

Please sign in to comment.