dateevent2 added (backend)
This commit is contained in:
parent
26383efcac
commit
785e882753
@ -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","'")
|
||||
|
Loading…
Reference in New Issue
Block a user