global settings json

This commit is contained in:
Justin 2023-09-25 21:31:01 +08:00 committed by GitHub
parent 8a5c2f3e3d
commit 35b2277996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,9 @@ def index():
globalstocks_settings = json.load(f)
f.close()
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:
f= open('csv/movie_settings.json', 'r')
movie_settings = json.load(f)