From 6d9c84e35434a059f90deb12cab5d2c1c0b15c7c Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 8 Aug 2023 17:08:03 +0800 Subject: [PATCH] added market_settings --- server.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 3cfe703..8d7b1d0 100755 --- a/server.py +++ b/server.py @@ -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 @@ -367,6 +367,13 @@ def index(): jokes_settings['categories'] = ['Any'] 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') @@ -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 }