Skip to content

Commit

Permalink
Merge pull request #72 from zaanposni/release/2.0.2
Browse files Browse the repository at this point in the history
release/2.0.2
  • Loading branch information
zaanposni authored May 20, 2024
2 parents 3b992e6 + 0fdf79e commit b68108a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="vvspy",
version="2.0.1",
version="2.0.2",
license="MIT",
description="API Wrapper for VVS (Verkehrsverbund Stuttgart)",
author="zaanposni",
Expand Down
2 changes: 1 addition & 1 deletion vvspy/arrivals.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_arrivals(
"type_dm": kwargs.get("type_dm", "any"),
"anyObjFilter_dm": kwargs.get("anyObjFilter_dm", 2),
"deleteAssignedStops": kwargs.get("deleteAssignedStops", 1),
"name_dm": station_id.value if type(station_id) == "<enum 'Station'>" else str(station_id),
"name_dm": station_id.value if isinstance(station_id, Station) else str(station_id),
"mode": kwargs.get("mode", "direct"),
"dmLineSelectionAll": kwargs.get("dmLineSelectionAll", 1),
"useRealtime": kwargs.get("useRealtime", 1), # live delay
Expand Down
2 changes: 1 addition & 1 deletion vvspy/departures.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_departures(
"type_dm": kwargs.get("type_dm", "any"),
"anyObjFilter_dm": kwargs.get("anyObjFilter_dm", 2),
"deleteAssignedStops": kwargs.get("deleteAssignedStops", 1),
"name_dm": station_id.value if type(station_id) == "<enum 'Station'>" else str(station_id),
"name_dm": station_id.value if isinstance(station_id, Station) else str(station_id),
"mode": kwargs.get("mode", "direct"),
"dmLineSelectionAll": kwargs.get("dmLineSelectionAll", 1),
"useRealtime": kwargs.get("useRealtime", 1), # live delay
Expand Down
4 changes: 2 additions & 2 deletions vvspy/trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def get_trips(
"language": kwargs.get("language", "de"),
"locationServerActive": kwargs.get("locationServerActive", "1"),
"macroWebTrip": kwargs.get("macroWebTrip", "true"),
"name_destination": destination_station_id.value if type(destination_station_id) == "<enum 'Station'>" else str(destination_station_id),
"name_origin": origin_station_id.value if type(origin_station_id) == "<enum 'Station'>" else str(origin_station_id),
"name_destination": destination_station_id.value if isinstance(destination_station_id, Station) else str(destination_station_id),
"name_origin": origin_station_id.value if isinstance(origin_station_id, Station) else str(origin_station_id),
"noElevationProfile": kwargs.get("noElevationProfile", "1"),
"noElevationSummary": kwargs.get("noElevationSummary", "1"),
"outputFormat": "rapidJSON",
Expand Down

0 comments on commit b68108a

Please sign in to comment.