Ne plus retourner les arrêts vides

This commit is contained in:
Sasha MOREL 2021-09-18 09:28:11 +02:00
parent 0a2fc7e596
commit 74fff341be
1 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ def show_stops_from_ref (ref):
if add: if add:
rte ['line_id'] = line_id rte ['line_id'] = line_id
s ['routes'].append (rte) s ['routes'].append (rte)
if s ['routes'] != []:
r ['stop_points'].append (s) r ['stop_points'].append (s)
return (r) return (r)