feat: 处理dag时返回edge更多信息

This commit is contained in:
caoqianming 2025-05-26 11:07:08 +08:00
parent eefd3691e6
commit 3a69075b9f
1 changed files with 2 additions and 0 deletions

View File

@ -997,6 +997,8 @@ def get_batch_dag(batch_number: str, version=1):
edges.append({
'source': source,
'target': target,
"handover": log.handover.id if log.handover else None,
"mlog": log.mlog.id if log.mlog else None,
'label': r_dict.get(log.relation_type, ""), # 使用relation_type作为边的标签
})