Adjust format of review required code

This commit is contained in:
Fred Boniface 2024-02-21 23:00:19 +00:00
parent d1728770c3
commit a98e069b88

View File

@ -18,15 +18,12 @@ def humanYaml(pis_list):
print(err)
elif len(pis['services']) > 1:
print(f"More than one possible service for {pis['pis']}")
print(pis)
try:
manual_review += f' - code: "{pis["pis"]}"\n'
for service in pis["services"]:
crs = []
for stop in service['stops']:
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
manual_review += f'OR stops:[{",".join(crs)}]\n'
except Exception as err:
print(err)
manual_review += f'## THIS CODE REQUIRES MANUAL VERIFICATION'
manual_review += f' - code: "{pis["pis"]}"\n'
for service in pis["services"]:
crs = []
for stop in service['stops']:
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
manual_review += f' stops:[{",".join(crs)}]\n'
return additional_pis + manual_review