feat: 处理dag时返回edge更多信息
This commit is contained in:
parent
eefd3691e6
commit
3a69075b9f
|
@ -997,6 +997,8 @@ def get_batch_dag(batch_number: str, version=1):
|
||||||
edges.append({
|
edges.append({
|
||||||
'source': source,
|
'source': source,
|
||||||
'target': target,
|
'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作为边的标签
|
'label': r_dict.get(log.relation_type, ""), # 使用relation_type作为边的标签
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue