Update stockTicker.py

This commit is contained in:
Justin 2023-03-23 18:32:21 +08:00 committed by GitHub
parent f4687fa02c
commit 3b953dd0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3220,7 +3220,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') or (league == 'LIV'):
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'NASCAR') or (league == 'F1'):
x_offset += 10
else:
img.paste(league_logo2, (x_offset,0))
@ -3245,7 +3245,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') or (league == 'LIV'):
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'NASCAR') or (league == 'F1'):
event = match['event']
venue = match['venue']
city = match['city']