From a8b079b02cd6fbd6902a14bb061cafddd9439314 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 13 Sep 2023 22:11:01 +0800 Subject: [PATCH] added names --- stockTicker.py | 56 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 5 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 24ee866..bd11fc1 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -1098,7 +1098,15 @@ class StockTicker(): f.close() except: pass - + try: + if all_crypto_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass + coin_info = all_crypto_settings['symbols'] coin_bases = list(coin_info.keys()) @@ -1320,7 +1328,14 @@ class StockTicker(): f.close() except: pass - + try: + if all_crypto_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass coin_info = all_crypto_settings['symbols'] coin_bases = list(coin_info.keys()) @@ -2084,6 +2099,16 @@ class StockTicker(): except: pass + try: + if all_stocks_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass + + stock_info = all_stocks_settings['symbols'] symbols = list(stock_info.keys()) timenow = datetime.now(ny_zone).replace(tzinfo=None).strftime("%H:%M:%S") @@ -2379,7 +2404,14 @@ class StockTicker(): pass except: pass - + try: + if all_stocks_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass stock_info = all_stocks_settings['symbols'] symbols = list(stock_info.keys()) timenow = datetime.now(ny_zone).replace(tzinfo=None).strftime("%H:%M:%S") @@ -6698,7 +6730,14 @@ class StockTicker(): image_list.append(self.blank) else: image_list = [] - + try: + if market_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass active_info = market_settings['mostactive'] active_symbols = list(active_info.keys()) gainers_info = market_settings['gainers'] @@ -6918,7 +6957,14 @@ class StockTicker(): image_list.append(self.blank) else: image_list = [] - + try: + if market_settings['display_name']: + names = True + else: + names = False + except: + names = False + pass active_info = market_settings['mostactive'] active_symbols = list(active_info.keys()) gainers_info = market_settings['gainers']