global settings json
This commit is contained in:
parent
8a5c2f3e3d
commit
35b2277996
@ -263,7 +263,9 @@ def index():
|
|||||||
globalstocks_settings = json.load(f)
|
globalstocks_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
globalstocks_settings = {}
|
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:
|
||||||
|
json.dump(globalstocks_settings, f)
|
||||||
try:
|
try:
|
||||||
f= open('csv/movie_settings.json', 'r')
|
f= open('csv/movie_settings.json', 'r')
|
||||||
movie_settings = json.load(f)
|
movie_settings = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user