quick demo globalstocks_settings

This commit is contained in:
Justin 2023-09-25 17:45:09 +08:00 committed by GitHub
parent 5ee369e6ba
commit 2f51fd206e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,12 @@ def index():
f.close()
except:
crypto_settings = {"feature": "Stocks", "speed": "medium","speed2": "medium", "animation": "down", "percent": False, "point": True, "logos": True, "chart": False, "title": True, "lohivol": False, "display_name": False, "symbols": {"ETH,USD": {"current": "2629.32", "24hr_change": "-27.6432", "percent_change": "-1.04"}, "BTC,USD": {"current": "38161.00", "24hr_change": "-50.8386", "percent_change": "-0.13"}, "BNB,USD": {"current": "372.57", "24hr_change": "0.4140", "percent_change": "0.11"}, "ADA,BTC": {"current": "0.0000", "24hr_change": "-0.0000", "percent_change": "-3.74"}}}
try:
f = open('csv/globalstocks_settings.json', 'r')
globalstocks_settings = json.load(f)
f.close()
except:
globalstocks_settings = {}
try:
f= open('csv/movie_settings.json', 'r')
movie_settings = json.load(f)