database testing
This commit is contained in:
@@ -567,7 +567,7 @@ def updateAll(api_key, weather_key, logf):
|
||||
|
||||
updateCrypto(api_key, logf)
|
||||
|
||||
updateForex(api_key, logf)
|
||||
#updateForex(api_key, logf)
|
||||
|
||||
updateNews(api_key, logf)
|
||||
|
||||
@@ -608,10 +608,6 @@ if __name__ == '__main__':
|
||||
api_keys = f.readlines()
|
||||
api_key = api_keys[0].strip()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
try:
|
||||
weather_key = api_keys[1].strip()
|
||||
@@ -679,13 +675,13 @@ if __name__ == '__main__':
|
||||
|
||||
if diff >= update_frequencies['crypto'] or msg == 'c':
|
||||
crypto_time = NY_time.strftime("%d/%m/%Y %H:%M:%S")
|
||||
#updateCrypto(api_key)
|
||||
updateCrypto(api_key, logf)
|
||||
print('UPDATING CRYPTO')
|
||||
|
||||
last_updates['crypto'] = crypto_time
|
||||
update_process = Process(target = updateCrypto, args = (api_key,logf))
|
||||
update_process.start()
|
||||
update_processes.append(update_process)
|
||||
#update_process = Process(target = updateCrypto, args = (api_key,logf))
|
||||
#update_process.start()
|
||||
#update_processes.append(update_process)
|
||||
|
||||
|
||||
# weather
|
||||
|
Reference in New Issue
Block a user