You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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())
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: