show only 3 events for golf

This commit is contained in:
Justin 2023-02-02 21:36:27 +08:00 committed by GitHub
parent b7f26039e5
commit 2ee242d0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -778,7 +778,7 @@ def updateLeagueEvents(api_key, time, logf):
ten_or_fifteen = slice(None)
events = []
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU'):
ten_or_fifteen = slice(5)
ten_or_fifteen = slice(3)
else:
ten_or_fifteen = slice(None)
for d in all_data[league][ten_or_fifteen]: