Skip to content

Commit

Permalink
Fix access to WEATHER_API_URL and API_KEY in fetch_weather_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Parissai committed Aug 9, 2024
1 parent 151149a commit 94175d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def fetch_weather_data(city: str, date: str) -> dict:
"""
async with httpx.AsyncClient() as client:
try:
response = await client.get(WEATHER_API_URL, params={"key": API_KEY, "q": city, "dt": date})
response = await client.get(Config.WEATHER_API_URL, params={"key": Config.API_KEY, "q": city, "dt": date})
response.raise_for_status()
data = response.json()

Expand Down

0 comments on commit 94175d0

Please sign in to comment.