From bafbf11322611cc15977cc34a72f99bc880552d5 Mon Sep 17 00:00:00 2001 From: jebus Date: Thu, 12 Mar 2026 10:25:47 +1300 Subject: [PATCH] [Fix] Broken Enzyme Links (#353) Co-authored-by: Tim Lorsbach Reviewed-on: https://git.envipath.com/enviPath/enviPy/pulls/353 --- epdb/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epdb/models.py b/epdb/models.py index 5f5471a6..558eae66 100644 --- a/epdb/models.py +++ b/epdb/models.py @@ -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