disabled force update whenever save is clicked for market and sector
This commit is contained in:
parent
92eac644cc
commit
d9386ed068
28
server.py
28
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):
|
||||
|
Loading…
Reference in New Issue
Block a user