Update database_caller.py
weather update fix
This commit is contained in:
parent
3bfd896fa0
commit
cce74d8a92
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user