-
-
Couldn't load subscription status.
- Fork 27
Open
Description
There is a typo in client.py. simsessnum should be simsesnum. using simsessnum always returns the feature race.
I also had to change...
sim_session_type=ct.SimSessionType.race.value
to
sim_session_type
so that I could pass the value directly. I was scraping laps from heat races which wasn't an option by default.
All working for me now just a heads up.
async def race_laps_driver(
self,
cust_id,
subsession_id,
sim_session_type=ct.SimSessionType.race.value
):
""" Returns data for all laps completed of a single driver.
sim_sess_id specifies the laps from practice, qual, or race.
"""
payload = {
'subsessionid': subsession_id,
'simsessnum': sim_session_type,
'groupid': cust_id
}
url = ct.URL_LAPS_SINGLE
response = await self._build_request(url, payload)
return session_data.RaceLapsDriver(response.json())
Metadata
Metadata
Assignees
Labels
No labels