Update server.py

This commit is contained in:
Justin 2023-09-26 15:12:35 +08:00 committed by GitHub
parent 3083bf9458
commit f435cbd9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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