removed brackets for economic event titles

This commit is contained in:
Justin 2023-06-20 18:49:08 +08:00 committed by GitHub
parent 5237144856
commit 45f3b7cb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5846,7 +5846,7 @@ class StockTicker():
period_img = None period_img = None
flag_img = Image.open('logos/economic_logos/' + event['country'] + '.png') flag_img = Image.open('logos/economic_logos/' + event['country'] + '.png')
circle_img = Image.open('logos/indicator.png') circle_img = Image.open('logos/indicator.png')
title_img = self.textImage(event['title'].upper(), font, r = 255, g = 255, b = 255) title_img = self.textImage((event['title'].upper()).replace("(", '').replace(")", ''), font, r = 255, g = 255, b = 255)
country_img = self.textImage(event['country'].upper(), font2, r= 255, g = 255, b = 0) 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) 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) indicator_img = self.textImage(event['indicator'], font2, r=255, g=255, b=255)