changed to dict for global stocks symbols
This commit is contained in:
parent
c32e1ab105
commit
3083bf9458
@ -263,7 +263,7 @@ def index():
|
|||||||
globalstocks_settings = json.load(f)
|
globalstocks_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
globalstocks_settings = {"feature": "Global Stocks", "speed": "medium", "speed2": "medium", "animation": "continuous", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": True, "display_name": False, "symbols": []}
|
globalstocks_settings = {"feature": "Global Stocks", "speed": "medium", "speed2": "medium", "animation": "continuous", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": True, "display_name": False, "symbols": {}}
|
||||||
with open('csv/globalstocks_settings.json', 'w') as f:
|
with open('csv/globalstocks_settings.json', 'w') as f:
|
||||||
json.dump(globalstocks_settings, f)
|
json.dump(globalstocks_settings, f)
|
||||||
try:
|
try:
|
||||||
@ -1850,7 +1850,7 @@ def save_globalstocks_settings(input_settings):
|
|||||||
current_settings = json.load(f)
|
current_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
current_settings = {"feature": "Global Stocks", "speed": "medium", "speed2": "medium", "animation": "continuous", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": True, "display_name": False, "symbols": []}
|
current_settings = {"feature": "Global Stocks", "speed": "medium", "speed2": "medium", "animation": "continuous", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": True, "display_name": False, "symbols": {}}
|
||||||
|
|
||||||
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user