[Fix] Broken Enzyme Links (#353)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#353
This commit is contained in:
2026-03-12 10:25:47 +13:00
parent f1a9456d1d
commit bafbf11322

View File

@ -1785,9 +1785,9 @@ class Reaction(
edges = Edge.objects.filter(edge_label=self) edges = Edge.objects.filter(edge_label=self)
for e in edges: for e in edges:
for scen in e.scenarios.all(): for scen in e.scenarios.all():
for ai in scen.additional_information.keys(): for ai in scen.get_additional_information():
if ai == "Enzyme": if ai.type == "Enzyme":
res.extend(scen.additional_information[ai]) res.append(ai.get())
return res return res