Update database_caller.py
This commit is contained in:
parent
3b953dd0e9
commit
bd6ce3732f
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user