try adding the force fetch stock data function here
This commit is contained in:
parent
0d7acd9677
commit
56bb44b268
12
server.py
12
server.py
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user