Skip to content

typo #102

@Eddie-Fantastic

Description

@Eddie-Fantastic

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions