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,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)