diff --git a/stop.py b/stop.py index 1e4664b..c0b35cf 100644 --- a/stop.py +++ b/stop.py @@ -119,7 +119,8 @@ def show_stops_from_ref (ref): if add: rte ['line_id'] = line_id s ['routes'].append (rte) - r ['stop_points'].append (s) + if s ['routes'] != []: + r ['stop_points'].append (s) return (r)