added upcoming times to prof display

This commit is contained in:
Justin 2023-04-27 18:22:21 +08:00 committed by GitHub
parent 1f47d8a6ad
commit 3e6a263cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3614,6 +3614,12 @@ class StockTicker():
dateEvent = match['date2']
except:
dateEvent = match['date'].replace('-', '.')
if time == 'future':
try:
date_timage = self.textImage(dateEvent + ' ' + match['time'].replace("EST","").replace('PM','P').replace('AM','A').replace('CET',''), small_font, r = 255, g = 255, b = 255)
except:
date_timage = self.textImage(dateEvent, small_font, r = 255, g = 255, b = 255)
else:
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'):