-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
driver_stats doesn't appear to parse the response correctly #74
Comments
Hmm, not sure on this. That could be the case, otherwise it could be that iRacing changed the structure of data returned |
OK, found it. The issue is because with the specific query that I was running (trying to use |
{"blacklisted":false,"search":1,"studied":false,"fsRacers":[],"friends":false,"searchRacers":[{"broadcast":{},"hidden":true,"helmet":{"c3":"000000","ll":20,"hp":40,"ht":0,"c1":"000000","ft":0,"c2":"802020"},"custid":498405,"name":"David+McCourt","trustedAsSpotter":false}]} which does include my cust_id 498405. So perhaps rather than recommending using |
For what it's worth, the tests are failing on this as well, so I am guessing iRacing changed the way they structure their data. Feel free to put up a PR to fix those methods. |
Thanks @XanderRiga. Does it seem appropriate to add functionality to get_driver_status to allow finding cust_id that way? |
So the point of pyracing was to try not to be too opinionated about how people might use the endpoints. We do have an endpoint for the driver status here, which returns a |
Oh, hang on. I didn't understand the question quite well enough. Yes that endpoint only allows queries via cust_id. If you wanted to build a proper query interface for that so it isn't hard-coded that way, then yes that would be an awesome addition |
Replacing spaces with '+' is no longer required.
Fixed issue #74 (string replace is no longer required)
I receive the error
TypeError: list indices must be integers or slices, not str
here:pyracing/pyracing/client.py
Lines 290 to 291 in 3cea16a
Haven't examined the response personally, but wondering if this is because multiple driver records are returned.
The text was updated successfully, but these errors were encountered: