Skip to content

Commit

Permalink
Fix for last commit: PRepend 'v' to version string, again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Jan 13, 2025
1 parent 275ff6e commit 53ddba5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/routes/thematic/geoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
router = APIRouter()


@router.get(
"/geoencoder", tags=["Geoencoder"], status_code=200, include_in_schema=True
)
@router.get("/geoencoder", tags=["Geoencoder"], status_code=200, include_in_schema=True)
async def geoencoder(params: GeoencoderQueryParams = Depends()):
"""Look up administrative boundary IDs matching a specified country name
(and region name and subregion names, if specified).
Expand All @@ -35,7 +33,7 @@ async def geoencoder(params: GeoencoderQueryParams = Depends()):
),
)

version_str: str = params.admin_version.value
version_str: str = "v" + params.admin_version.value

names: List[str | None] = sanitize_names(
params.normalize_search, params.country, params.region, params.subregion
Expand Down

0 comments on commit 53ddba5

Please sign in to comment.