try adding the force fetch stock data function here

This commit is contained in:
Justin 2022-10-06 16:40:48 +08:00 committed by GitHub
parent 0d7acd9677
commit 56bb44b268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,18 @@ class DummyProcess():
def close(self):
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
app = Flask(__name__)