added market_settings

This commit is contained in:
Justin 2023-08-08 17:08:03 +08:00 committed by GitHub
parent 00238f51e1
commit 6d9c84e354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ def index():
global command
all_features = ['Current Weather','Daily Forecast','News', 'Sports (Upcoming Games)','Sports (Past Games)','Sports (Live Games)',
'Sports (Team Stats)','Custom Images', 'Custom GIFs', 'Custom Messages', 'Stocks', 'Crypto', 'Forex', 'Commodities', 'Indices', 'Movies',
'IPO Calendar', 'Economic Calendar', 'Jokes']
'IPO Calendar', 'Economic Calendar', 'Jokes', 'Gainers, Losers, Active']
global professional
@ -368,6 +368,13 @@ def index():
except:
jokes_settings = {"feature": "Jokes", "speed": "medium", "speed2": "medium", "animation": "up", "title": True, "safe": True, "categories": ["Any"], "blacklist": [], "amount": "5", "jokes": []}
try:
f = open('csv/market_settings.json', 'r')
market_settings = json.load(f)
f.close()
except:
market_settings = {"feature": "Gainers, Losers, Active", "speed": "medium", "speed2": "medium", "animation": "up", "percent": True, "point": True, "logos": True, "chart": False, "title": True, "lohivol": False, "gainers": {}, "losers": {}, "mostactive": {}}
try:
f = open('csv/scheduler.json','r')
scheduler_settings = json.load(f)
@ -429,6 +436,7 @@ def index():
'scheduler_settings':scheduler_settings,
'economic_settings':economic_settings,
'jokes_settings':jokes_settings,
'market_settings':market_settings,
'networks_list': networks_list
}