From 3e6a263cf353c0a9c488887f871b2a5c45953bb9 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 27 Apr 2023 18:22:21 +0800 Subject: [PATCH] added upcoming times to prof display --- stockTicker.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stockTicker.py b/stockTicker.py index c1bea84..76b9108 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -3614,7 +3614,13 @@ class StockTicker(): dateEvent = match['date2'] except: dateEvent = match['date'].replace('-', '.') - date_timage = self.textImage(dateEvent, small_font, r = 255, g = 255, b = 255) + 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'): event = match['event']