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,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)