Adjust format of review required code
This commit is contained in:
parent
d1728770c3
commit
a98e069b88
@ -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
|
Reference in New Issue
Block a user