fix: get_dag时matin matout为空时不报错

This commit is contained in:
caoqianming 2025-04-07 10:18:43 +08:00
parent 61488bb4bd
commit b852e9b740
1 changed files with 9 additions and 8 deletions

View File

@ -485,6 +485,7 @@ class Route(CommonADModel):
edges = []
for rq in rqs:
if rq.material_in and rq.material_out:
source = rq.material_in.id
target = rq.material_out.id
nodes_set.update([source, target])