blocking force fetch stocks function until bug is figured out

This commit is contained in:
Justin 2022-10-31 15:30:32 +08:00 committed by GitHub
parent 1329b2376d
commit 5a5d95494a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__)