diff --git a/database_caller.py b/database_caller.py index 3dd3022..cfb4223 100755 --- a/database_caller.py +++ b/database_caller.py @@ -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")