added back force fetch stock prices upon boot
This commit is contained in:
parent
057f049436
commit
a41371dd3d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user