Skip to content

Commit 928a8f1

Browse files
extract system_id from path
1 parent 314a15d commit 928a8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/converters/gbfs_bird_remove_stations_or_vehicles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GbfsBirdRemoveStationsOrVehiclesConverter(BaseConverter):
88

99
@staticmethod
1010
def _get_system_id_from_path(path: str) -> str:
11-
return path.split('/')[-3:-2][0]
11+
return path.split('/')[-2]
1212

1313
def convert(self, data: Union[dict, list], path: str) -> Union[dict, list]:
1414
if not path.endswith('/gbfs.json') or not isinstance(data, dict) or not isinstance(data.get('data'), dict):

0 commit comments

Comments
 (0)