changed method to force fetch stock data upon boot
This commit is contained in:
parent
bfe7e1ba1b
commit
3a14309b47
14
force_fetch.py
Normal file
14
force_fetch.py
Normal file
@ -0,0 +1,14 @@
|
||||
import json
|
||||
|
||||
try:
|
||||
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()
|
||||
|
||||
except:
|
||||
pass
|
Loading…
Reference in New Issue
Block a user