added market_settings
This commit is contained in:
parent
00238f51e1
commit
6d9c84e354
10
server.py
10
server.py
@ -146,7 +146,7 @@ def index():
|
|||||||
global command
|
global command
|
||||||
all_features = ['Current Weather','Daily Forecast','News', 'Sports (Upcoming Games)','Sports (Past Games)','Sports (Live Games)',
|
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',
|
'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
|
global professional
|
||||||
|
|
||||||
@ -367,6 +367,13 @@ def index():
|
|||||||
jokes_settings['categories'] = ['Any']
|
jokes_settings['categories'] = ['Any']
|
||||||
except:
|
except:
|
||||||
jokes_settings = {"feature": "Jokes", "speed": "medium", "speed2": "medium", "animation": "up", "title": True, "safe": True, "categories": ["Any"], "blacklist": [], "amount": "5", "jokes": []}
|
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:
|
try:
|
||||||
f = open('csv/scheduler.json','r')
|
f = open('csv/scheduler.json','r')
|
||||||
@ -429,6 +436,7 @@ def index():
|
|||||||
'scheduler_settings':scheduler_settings,
|
'scheduler_settings':scheduler_settings,
|
||||||
'economic_settings':economic_settings,
|
'economic_settings':economic_settings,
|
||||||
'jokes_settings':jokes_settings,
|
'jokes_settings':jokes_settings,
|
||||||
|
'market_settings':market_settings,
|
||||||
'networks_list': networks_list
|
'networks_list': networks_list
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user