database testing

This commit is contained in:
Neythen Treloar
2022-03-05 15:35:56 +00:00
parent c53038b8ed
commit b6646f60cb
4 changed files with 748 additions and 21 deletions

View File

@@ -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