diff --git a/server.py b/server.py index 74cf742..53060aa 100755 --- a/server.py +++ b/server.py @@ -1444,15 +1444,15 @@ def save_market_settings(input_settings): with open('csv/market_settings.json', 'w') as f: json.dump(current_settings, f) - f = open('csv/last_updates.json', 'r') - last_updates = json.load(f) - f.close() + # f = open('csv/last_updates.json', 'r') + # last_updates = json.load(f) + # f.close() - last_updates['market']['force'] = True + # last_updates['market']['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() def save_sector_settings(input_settings): @@ -1478,15 +1478,15 @@ def save_sector_settings(input_settings): with open('csv/sector_settings.json', 'w') as f: json.dump(current_settings, f) - f = open('csv/last_updates.json', 'r') - last_updates = json.load(f) - f.close() + # f = open('csv/last_updates.json', 'r') + # last_updates = json.load(f) + # f.close() - last_updates['sector']['force'] = True + # last_updates['sector']['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() def save_sports_settings(input_settings):