From 86c0141a55d837073eaaa926666b2679e2031a95 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 6 Jul 2023 15:16:19 +0800 Subject: [PATCH] show past 2 tournaments (golf) --- database_caller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/database_caller.py b/database_caller.py index 5013dd1..5984d51 100755 --- a/database_caller.py +++ b/database_caller.py @@ -1181,7 +1181,10 @@ def updateLeagueEvents(api_key, time, logf): ten_or_fifteen = slice(None) events = [] if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'F1') or (league == 'NASCAR'): - ten_or_fifteen = slice(3) + if time == 'past': + ten_or_fifteen = slice(2) + else: + ten_or_fifteen = slice(3) else: ten_or_fifteen = slice(None)