added back force fetch stock prices upon boot

This commit is contained in:
Justin 2022-11-09 17:01:24 +08:00 committed by GitHub
parent 057f049436
commit a41371dd3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,14 +22,14 @@ from multiprocessing import Process
try:
time.sleep(80)
# f = open('csv/last_updates.json', 'r')
# last_updates = json.load(f)
# f.close()
# last_updates['stocks']['force'] = True
f = open('csv/last_updates.json', 'r')
last_updates = json.load(f)
f.close()
last_updates['stocks']['force'] = True
#last_updates['weather']['force'] = True
# f = open('csv/last_updates.json', 'w')
# json.dump(last_updates, f)
# f.close()
f = open('csv/last_updates.json', 'w')
json.dump(last_updates, f)
f.close()
except:
pass