dateevent2 added (backend)

This commit is contained in:
Justin 2023-04-27 17:22:27 +08:00 committed by GitHub
parent 26383efcac
commit 785e882753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1026,6 +1026,7 @@ def updateLeagueEvents(api_key, time, logf):
for d in all_data[league][ten_or_fifteen]:
event = {}
event['date'] = d['dateEvent']
event['date2'] = d['dateEvent2']
if time == 'live':
event['progess'] = d['strProgress']
@ -1033,6 +1034,7 @@ def updateLeagueEvents(api_key, time, logf):
else:
if (league == 'PGA') or (league == 'LPGA') or (league == 'PGA_EU') or (league == 'LIV') or (league == 'F1') or (league == 'NASCAR'):
event['date'] = d['dateEvent']
event['date2'] = d['dateEvent2']
event['event'] = d['strEvent'].replace("\u2019","'")
event['venue'] = d['strVenue'].replace("\u2019","'")
event['city'] = d['strCity'].replace("\u2019","'")