blocking force fetch stocks function until bug is figured out
This commit is contained in:
parent
1329b2376d
commit
5a5d95494a
22
server.py
22
server.py
@ -101,17 +101,17 @@ class DummyProcess():
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
f = open('csv/last_updates.json', 'r')
|
# f = open('csv/last_updates.json', 'r')
|
||||||
last_updates = json.load(f)
|
# last_updates = json.load(f)
|
||||||
f.close()
|
# f.close()
|
||||||
last_updates['stocks']['force'] = True
|
# last_updates['stocks']['force'] = True
|
||||||
#last_updates['weather']['force'] = True
|
# #last_updates['weather']['force'] = True
|
||||||
f = open('csv/last_updates.json', 'w')
|
# f = open('csv/last_updates.json', 'w')
|
||||||
json.dump(last_updates, f)
|
# json.dump(last_updates, f)
|
||||||
f.close()
|
# f.close()
|
||||||
except:
|
# except:
|
||||||
pass
|
# pass
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user