added save display name

This commit is contained in:
Justin 2023-09-13 21:56:51 +08:00 committed by GitHub
parent 3a98890c89
commit b4a5cdfd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1385,6 +1385,7 @@ def save_trade_settings(input_settings):
if input_settings['feature'] == 'Stocks' or input_settings['feature'] == 'Crypto':
current_settings['chart'] = input_settings['chart']
current_settings['lohivol'] = input_settings['lohivol']
current_settings['display_name'] = input_settings['display_name']
if input_settings['feature'] == 'Commodities':
try:
input_settings['symbols'] = [commodities_dict[symbol] for symbol in input_settings['symbols']]
@ -1638,6 +1639,7 @@ def save_market_settings(input_settings):
current_settings['point'] = input_settings['point']
current_settings['categories'] = input_settings['categories']
current_settings['lohivol'] = input_settings['lohivol']
current_settings['display_name'] = input_settings['display_name']
try:
f = open('csv/' + filename, 'w')
json.dump(current_settings, f)