|
|
|
|
@ -1155,6 +1155,9 @@ def format_route_all_report(report):
|
|
|
|
|
prepared_layout.get("surface_carriers", 0),
|
|
|
|
|
prepared_layout.get("terminal_access_carriers", 0),
|
|
|
|
|
)
|
|
|
|
|
errors = report.get("errors", []) or []
|
|
|
|
|
if errors:
|
|
|
|
|
message += "\n首个错误:{0}".format(str(errors[0]))
|
|
|
|
|
auto_bound = report.get("auto_bound_terminals", 0)
|
|
|
|
|
auto_created = report.get("auto_created_terminals", 0)
|
|
|
|
|
if auto_bound or auto_created:
|
|
|
|
|
@ -1172,12 +1175,12 @@ def format_route_all_report(report):
|
|
|
|
|
)
|
|
|
|
|
if report.get("local_terminals", 0) > 0:
|
|
|
|
|
message += " 请先从 QET 重新导入/更新工程端子,使端子 UUID 不再是 local:...。"
|
|
|
|
|
sample = (report.get("missing_endpoint_samples") or [None])[0]
|
|
|
|
|
if sample:
|
|
|
|
|
message += "\n缺失示例:{0} -> {1}".format(
|
|
|
|
|
sample.get("start_terminal_uuid", ""),
|
|
|
|
|
sample.get("end_terminal_uuid", ""),
|
|
|
|
|
)
|
|
|
|
|
sample = (report.get("missing_endpoint_samples") or [None])[0]
|
|
|
|
|
if sample:
|
|
|
|
|
message += "\n缺失示例:{0} -> {1}".format(
|
|
|
|
|
sample.get("start_terminal_uuid", ""),
|
|
|
|
|
sample.get("end_terminal_uuid", ""),
|
|
|
|
|
)
|
|
|
|
|
return message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|