We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b73f5fc + 9b63aca commit 9b4a8c4Copy full SHA for 9b4a8c4
app/converters/gbfs_nextbike_vehicle_availabilities.py
@@ -59,6 +59,8 @@ def _convert_station_status(self, system_id: str, data: dict, path: str) -> dict
59
return data
60
61
vehicles = self.free_vehicles_cache_per_system.get(system_id, [])
62
+ if len(vehicles) == 0: # _convert_free_vehicles_status has not yet been called for this system_id
63
+ return data
64
65
update_stations_availability_status(data['data']['stations'], vehicles)
66
0 commit comments