Skip to content

Commit

Permalink
Fix query param handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Apr 10, 2024
1 parent 5432229 commit 7bba6cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_hana/app/routers/api_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@

@proxy_route.post("/weather")
async def api_proxy_weather(query: WeatherAPIRequest) -> WeatherAPIOnecallResponse:
query = dict(query)
query["lang"] = query.pop("lang_code")
return mq_connector.query_api_proxy("open_weather_map", dict(query))
return mq_connector.query_api_proxy("open_weather_map", query)


@proxy_route.post("/stock/symbol")
Expand Down

0 comments on commit 7bba6cb

Please sign in to comment.