From 1b27186078a470000243cce122058695e45ecc73 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 5 Jul 2023 22:21:28 +0800 Subject: [PATCH] replace / with space in economic calendar images --- stockTicker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 05b01f1..c7d924a 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -5846,7 +5846,7 @@ class StockTicker(): period_img = None flag_img = Image.open('logos/economic_logos/' + event['country'] + '.png') circle_img = Image.open('logos/indicator.png') - title_img = self.textImage((event['title'].upper()).replace("(", '').replace(")", ''), font, r = 255, g = 255, b = 255) + title_img = self.textImage((event['title'].upper()).replace("(", '').replace(")", '').replace("/", " "), font, r = 255, g = 255, b = 255) country_img = self.textImage(event['country'].upper(), font2, r= 255, g = 255, b = 0) date_img = self.textImage(event['time'], small_font, r=0, g=150, b=255) indicator_img = self.textImage(event['indicator'], font2, r=255, g=255, b=255) @@ -5972,7 +5972,7 @@ class StockTicker(): width, height = flag_img.size flag_img = flag_img.resize((int(width/2), int(height/2))) circle_img = Image.open('logos/indicator.png') - title_img = self.textImage((event['title'].upper()).replace("(", '').replace(")", ''), font, r = 255, g = 255, b = 255) + title_img = self.textImage((event['title'].upper()).replace("(", '').replace(")", '').replace("/", " "), font, r = 255, g = 255, b = 255) country_img = self.textImage(event['country'].upper(), small_font, r= 255, g = 255, b = 0) date_img = self.textImage(event['time'].split(' ')[2], small_font, r=0, g=150, b=255) indicator_img = self.textImage(event['indicator'], small_font, r=255, g=255, b=255)