From 1f47d8a6adbf1d7251428ffe8192e0e85fce13dd Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 27 Apr 2023 17:49:38 +0800 Subject: [PATCH] added date2 to getleagueprofessional --- stockTicker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stockTicker.py b/stockTicker.py index 7345627..c1bea84 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -3610,7 +3610,10 @@ class StockTicker(): 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) if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'NASCAR') or (league == 'F1'):