cfg json bullcrap
This commit is contained in:
@@ -31,7 +31,7 @@ import json
|
||||
with open("conf.json", "r") as file:
|
||||
cfg = json.load(file)
|
||||
|
||||
apiKey = cfg[twcApiKey]
|
||||
apiKey = cfg["twcApiKey"]
|
||||
|
||||
async def getData(epaId, zipcode):
|
||||
url = f"https://api.weather.com/v1/location/{zipcode}:4:US/airquality.xml?language=en-US&apiKey={apiKey}"
|
||||
|
||||
Reference in New Issue
Block a user