Update database_caller.py
weather update fix
This commit is contained in:
@@ -526,13 +526,13 @@ def checkStocks(last_update, update_frequency):
|
|||||||
return updated
|
return updated
|
||||||
|
|
||||||
|
|
||||||
def updateAll(api_key):
|
def updateAll(api_key, weather_key):
|
||||||
updateStocks(api_key)
|
updateStocks(api_key)
|
||||||
updateCrypto(api_key)
|
updateCrypto(api_key)
|
||||||
updateForex(api_key)
|
updateForex(api_key)
|
||||||
updateNews(api_key)
|
updateNews(api_key)
|
||||||
updateSports(api_key)
|
updateSports(api_key)
|
||||||
updateWeather(api_key)
|
updateWeather(weather_key)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -596,7 +596,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
msg = getInput()
|
msg = getInput()
|
||||||
if msg == 'A':
|
if msg == 'A':
|
||||||
updateAll(api_key)
|
updateAll(api_key, weather_key)
|
||||||
|
|
||||||
#stocks
|
#stocks
|
||||||
stock_time = datetime.strptime(last_updates['stocks'], "%d/%m/%Y %H:%M:%S")
|
stock_time = datetime.strptime(last_updates['stocks'], "%d/%m/%Y %H:%M:%S")
|
||||||
|
Reference in New Issue
Block a user