added ufc

This commit is contained in:
Justin 2023-04-17 17:55:53 +08:00 committed by GitHub
parent 5e7e332bbc
commit 78b745b884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -911,6 +911,11 @@ def updateLeagueEvents(api_key, time, logf):
ten_or_fifteen = slice(3)
else:
ten_or_fifteen = slice(None)
if league == 'UFC':
event = all_data['UFC'][0]
events.append(event)
else:
for d in all_data[league][ten_or_fifteen]:
event = {}
event['date'] = d['dateEvent']