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)
|
print(err)
|
||||||
elif len(pis['services']) > 1:
|
elif len(pis['services']) > 1:
|
||||||
print(f"More than one possible service for {pis['pis']}")
|
print(f"More than one possible service for {pis['pis']}")
|
||||||
print(pis)
|
manual_review += f'## THIS CODE REQUIRES MANUAL VERIFICATION'
|
||||||
try:
|
|
||||||
manual_review += f' - code: "{pis["pis"]}"\n'
|
manual_review += f' - code: "{pis["pis"]}"\n'
|
||||||
for service in pis["services"]:
|
for service in pis["services"]:
|
||||||
crs = []
|
crs = []
|
||||||
for stop in service['stops']:
|
for stop in service['stops']:
|
||||||
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
|
crs.append(owlboard_connector.convert_tiploc_to_crs(stop))
|
||||||
manual_review += f'OR stops:[{",".join(crs)}]\n'
|
manual_review += f' stops:[{",".join(crs)}]\n'
|
||||||
except Exception as err:
|
|
||||||
print(err)
|
|
||||||
|
|
||||||
return additional_pis + manual_review
|
return additional_pis + manual_review
|
Reference in New Issue
Block a user