forked from enviPath/enviPy
[Fix] Broken Enzyme Links (#353)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#353
This commit is contained in:
@ -1785,9 +1785,9 @@ class Reaction(
|
||||
edges = Edge.objects.filter(edge_label=self)
|
||||
for e in edges:
|
||||
for scen in e.scenarios.all():
|
||||
for ai in scen.additional_information.keys():
|
||||
if ai == "Enzyme":
|
||||
res.extend(scen.additional_information[ai])
|
||||
for ai in scen.get_additional_information():
|
||||
if ai.type == "Enzyme":
|
||||
res.append(ai.get())
|
||||
return res
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user