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
|
||||
|
||||
|
||||
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
|
||||
# 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
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user