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