Update server.py

This commit is contained in:
Justin 2023-08-08 17:54:40 +08:00 committed by GitHub
parent 88fb037266
commit a7ed438f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1415,7 +1415,7 @@ def save_market_settings(input_settings):
current_settings = json.load(f) current_settings = json.load(f)
f.close() f.close()
except: except:
current_settings = {"feature": "Gainers, Losers, Active", "speed": "medium", "speed2": "medium", "animation": "up", "percent": True, "point": true, "logos": True, "chart": False, "title": True, "lohivol": False, "categories": ["Top Gainers", "Top Losers", "Most Active"], "gainers": {}, "losers": {}, "mostactive": {}} current_settings = {"feature": "Gainers, Losers, Active", "speed": "medium", "speed2": "medium", "animation": "up", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": False, "categories": ["Top Gainers", "Top Losers", "Most Active"], "gainers": {}, "losers": {}, "mostactive": {}}
current_settings['speed'] = input_settings['speed'].lower() current_settings['speed'] = input_settings['speed'].lower()
current_settings['speed2'] = input_settings['speed2'].lower() current_settings['speed2'] = input_settings['speed2'].lower()