I receive the error TypeError: list indices must be integers or slices, not str here:
|
return [historical_data.DriverStats(x) for |
|
x in response.json()["d"]["r"]] |
Haven't examined the response personally, but wondering if this is because multiple driver records are returned.