Do not publish empty stop services

This commit is contained in:
Fred Boniface 2024-03-08 21:00:47 +00:00
parent fddda2063e
commit 8e6bb25471

View File

@ -8,6 +8,7 @@ def humanYaml(pis_list):
if len(pis['services']) == 1:
crs = []
try:
if (len(pis['services'][0]['stops']) > 0) :
for stop in pis['services'][0]['stops']:
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
additional_pis += f' - code: "{pis["pis"]}"\n'