Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

StationID Format has changed #15

@Bastlwastl42

Description

@Bastlwastl42

Hi,

i noticed that the format of the stationID has been changed, probably somewhere yesterday. It used to be an simple integer, but is now rather complex string format. E.g. for the Munich Central Station, the ID is not 6 anymore but de:09162:6.
This in return causes all the type checking for the stationID to crash, however simply using this string format is fine.
I fixed my local versionby removing the sanity check in the get_departure, but i saw that checks like
isinstance(stationID, int)
are also in get_route, which i never used. It might be also fine by replacing the instance cheks here with a check to str?

Best

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