Do not publish empty stop services
This commit is contained in:
parent
fddda2063e
commit
8e6bb25471
@ -8,6 +8,7 @@ def humanYaml(pis_list):
|
|||||||
if len(pis['services']) == 1:
|
if len(pis['services']) == 1:
|
||||||
crs = []
|
crs = []
|
||||||
try:
|
try:
|
||||||
|
if (len(pis['services'][0]['stops']) > 0) :
|
||||||
for stop in pis['services'][0]['stops']:
|
for stop in pis['services'][0]['stops']:
|
||||||
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
|
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
|
||||||
additional_pis += f' - code: "{pis["pis"]}"\n'
|
additional_pis += f' - code: "{pis["pis"]}"\n'
|
||||||
|
Reference in New Issue
Block a user