cfg json bullcrap
This commit is contained in:
@@ -24,7 +24,7 @@ import json
|
||||
with open("conf.json", "r") as file:
|
||||
cfg = json.load(file)
|
||||
|
||||
apiKey = cfg[twcApiKey]
|
||||
apiKey = cfg["twcApiKey"]
|
||||
|
||||
async def getData(coopId, geocode):
|
||||
fetchUrl = f"https://api.weather.com/v2/indices/heatCool/daypart/7day?geocode={geocode}&language=en-US&format=xml&apiKey={apiKey}"
|
||||
|
||||
Reference in New Issue
Block a user