disabled force update whenever save is clicked for market and sector

This commit is contained in:
Justin 2023-08-15 19:32:29 +08:00 committed by GitHub
parent 92eac644cc
commit d9386ed068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):