From eb62a7b7b1beff6bbbc17f9bba3bace10d3debff Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 23 Mar 2023 16:37:07 +0800 Subject: [PATCH] liv golf --- stockTicker.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index ae8b660..39ea8fa 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -2520,7 +2520,7 @@ class StockTicker(): for league in leagues: try: x_offset = 0 - if (league =='PGA') or (league == 'LPGA') or (league == 'PGA_EU'): + if (league =='PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'): img = Image.new('RGB', (10000, 32)) else: img = Image.new('RGB', (10000, 32)) @@ -2529,7 +2529,7 @@ class StockTicker(): try: league_logo = Image.open('logos/sports/league_logos/{}.png'.format(league)).convert('RGB') - if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU'): + if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'): x_offset += self.blank.size[0] else: img.paste(league_logo, (x_offset,0)) @@ -2554,7 +2554,7 @@ class StockTicker(): dateEvent = match['date'].replace('-', '.') date_timage = self.textImage(dateEvent, small_font, r=255, g=255, b=255) - if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU'): + if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'): event = match['event'] venue = match['venue'] city = match['city'] @@ -3193,7 +3193,7 @@ class StockTicker(): width, height = league_logo.size league_logo2 = league_logo.resize((int(width/2), int(height/2))) - if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU'): + if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'): x_offset += 10 else: img.paste(league_logo2, (x_offset,0)) @@ -3218,7 +3218,7 @@ class StockTicker(): dateEvent = match['date'].replace('-', '.') date_timage = self.textImage(dateEvent, small_font, r = 255, g = 255, b = 255) - if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU'): + if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'): event = match['event'] venue = match['venue'] city = match['city']