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