Update database_caller.py

weather update fix
This commit is contained in:
Neythen Treloar 2022-02-15 19:59:00 +00:00 committed by GitHub
parent 3bfd896fa0
commit cce74d8a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,13 +526,13 @@ def checkStocks(last_update, update_frequency):
return updated
def updateAll(api_key):
def updateAll(api_key, weather_key):
updateStocks(api_key)
updateCrypto(api_key)
updateForex(api_key)
updateNews(api_key)
updateSports(api_key)
updateWeather(api_key)
updateWeather(weather_key)
if __name__ == '__main__':
@ -596,7 +596,7 @@ if __name__ == '__main__':
msg = getInput()
if msg == 'A':
updateAll(api_key)
updateAll(api_key, weather_key)
#stocks
stock_time = datetime.strptime(last_updates['stocks'], "%d/%m/%Y %H:%M:%S")