Update server.py

This commit is contained in:
Justin 2023-09-25 22:34:57 +08:00 committed by GitHub
parent c6ca87adc7
commit b76a787d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1829,7 +1829,10 @@ def save_globalstocks_settings(input_settings):
current_settings['chart'] = input_settings['chart'] current_settings['chart'] = input_settings['chart']
current_settings['lohivol'] = input_settings['lohivol'] current_settings['lohivol'] = input_settings['lohivol']
current_settings['display_name'] = input_settings['display_name'] current_settings['display_name'] = input_settings['display_name']
try:
current_settings = combine_dict(current_settings, input_settings['symbols'], 'symbols') current_settings = combine_dict(current_settings, input_settings['symbols'], 'symbols')
except:
pass
try: try:
f = open('csv/' + filename, 'w') f = open('csv/' + filename, 'w')
json.dump(current_settings, f) json.dump(current_settings, f)