fix: get_dag时matin matout为空时不报错
This commit is contained in:
parent
61488bb4bd
commit
b852e9b740
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue