We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314a15d commit 928a8f1Copy full SHA for 928a8f1
app/converters/gbfs_bird_remove_stations_or_vehicles.py
@@ -8,7 +8,7 @@ class GbfsBirdRemoveStationsOrVehiclesConverter(BaseConverter):
8
9
@staticmethod
10
def _get_system_id_from_path(path: str) -> str:
11
- return path.split('/')[-3:-2][0]
+ return path.split('/')[-2]
12
13
def convert(self, data: Union[dict, list], path: str) -> Union[dict, list]:
14
if not path.endswith('/gbfs.json') or not isinstance(data, dict) or not isinstance(data.get('data'), dict):
0 commit comments