diff --git a/database_caller.py b/database_caller.py index a191736..d69c5fb 100755 --- a/database_caller.py +++ b/database_caller.py @@ -22,14 +22,14 @@ from multiprocessing import Process try: time.sleep(80) -# f = open('csv/last_updates.json', 'r') -# last_updates = json.load(f) -# f.close() -# last_updates['stocks']['force'] = True + 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() + f = open('csv/last_updates.json', 'w') + json.dump(last_updates, f) + f.close() except: pass