Update database_caller.py

This commit is contained in:
Justin 2023-03-23 18:37:10 +08:00 committed by GitHub
parent 3b953dd0e9
commit bd6ce3732f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -845,10 +845,8 @@ def updateLeagueEvents(api_key, time, logf):
for league in all_data.keys():
ten_or_fifteen = slice(None)
events = []
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV'):
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'F1') or (league == 'NASCAR'):
ten_or_fifteen = slice(3)
elif (league == 'F1') or (league == 'NASCAR'):
ten_or_fifteen = slice(5)
else:
ten_or_fifteen = slice(None)
for d in all_data[league][ten_or_fifteen]: