added names

This commit is contained in:
Justin 2023-09-13 22:11:01 +08:00 committed by GitHub
parent 9ea0714728
commit a8b079b02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']