From ffc4db6184937393c97a3b60cc50ab57a93e85b2 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 15 Aug 2023 16:16:17 +0800 Subject: [PATCH] logos for getsectorimage --- stockTicker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index a954915..d30bfc3 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -6963,8 +6963,8 @@ class StockTicker(): midFrame = self.textToImage(ticker, current, arrow, percent_change, point_change) #IMAGE THE TEXT if sector_settings['logos']: try: - logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'stocks') - logo = self.openImage(os.path.join(logos_path, ticker + '.png')) + logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'sector') + logo = self.openImage(os.path.join(logos_path, category + '.png')) stitchedStock = self.stitchImage([logo,midFrame]) except Exception as e: stitchedStock = midFrame