Skip to content

Commit

Permalink
Fix loading of RW response
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Jan 8, 2025
1 parent e0fa91b commit 3cb3afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/rw_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def get_geostore_by_wdpa_id(wdpa_id: str, x_api_key: str | None = None) ->
response: HTTPXResponse = await client.get(url)

if response.status_code == 200:
return RWGeostore.parse_obj(response.json())
return RWGeostore.parse_obj(response.json()["data"])
else:
raise HTTPException(response.status_code, response.text)

Expand Down

0 comments on commit 3cb3afd

Please sign in to comment.