try adding the force fetch stock data function here
This commit is contained in:
parent
0d7acd9677
commit
56bb44b268
12
server.py
12
server.py
@ -101,6 +101,18 @@ class DummyProcess():
|
|||||||
return True
|
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__)
|
app = Flask(__name__)
|
||||||
@app.route("/", methods=['GET', 'POST'])
|
@app.route("/", methods=['GET', 'POST'])
|
||||||
|
Loading…
Reference in New Issue
Block a user