I am trying to write an if statement which doesn't append the 'id' '1062066', but it is not working
My code:
if not event['id'] in ['1062066']
JSON:
"id":1062066,
"number":9,
"name":"COASTAL MIDWEST TRANSPORT HANDICAP",
"startsAt":"2020-10-03T09:25:00+00:00",
"url":"https:\/\/www.odds.com.au\/horse-racing\/kalgoorlie\/race-9\/?date=2020-10-03",
"isAbandoned":false,
"resulted":false,
"results":null,
"meetingId":184543,
"regionIconUrl":"https:\/\/puntcdn.com\/flags\/@2x\/AU@2x.png",
"regionName":"Australia"
Aucun commentaire:
Enregistrer un commentaire