date2 added to upcoming + past games
This commit is contained in:
parent
785e882753
commit
702c218405
@ -2913,7 +2913,10 @@ class StockTicker():
|
|||||||
small_font = ImageFont.load("./fonts/5x7.pil")
|
small_font = ImageFont.load("./fonts/5x7.pil")
|
||||||
for match in league_info:
|
for match in league_info:
|
||||||
|
|
||||||
dateEvent = match['date'].replace('-', '.')
|
try:
|
||||||
|
dateEvent = match['date2']
|
||||||
|
except:
|
||||||
|
dateEvent = match['date'].replace('-', '.')
|
||||||
date_timage = self.textImage(dateEvent, small_font, r=255, g=255, b=255)
|
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') or (league == 'NASCAR') or (league == 'F1'):
|
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'NASCAR') or (league == 'F1'):
|
||||||
|
Loading…
Reference in New Issue
Block a user