show past 2 tournaments (golf)

This commit is contained in:
Justin 2023-07-06 15:16:19 +08:00 committed by GitHub
parent ded27de705
commit 86c0141a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1181,6 +1181,9 @@ 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'):
if time == 'past':
ten_or_fifteen = slice(2)
else:
ten_or_fifteen = slice(3)
else:
ten_or_fifteen = slice(None)