From d9386ed068734ef799027e3b76652c6d0da3f540 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 15 Aug 2023 19:32:29 +0800 Subject: [PATCH] disabled force update whenever save is clicked for market and sector --- server.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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):