From 093daa5ecf0210ad20ce201d34787b1b919e598e Mon Sep 17 00:00:00 2001 From: jebus Date: Fri, 7 Aug 2026 19:58:36 +1200 Subject: [PATCH] [Fix] 'Object of type ConfidenceLevel is not JSON serializable' in Pathway.d3_json (#450) Co-authored-by: Tim Lorsbach Reviewed-on: https://git.envipath.com/enviPath/enviPy/pulls/450 --- epdb/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epdb/models.py b/epdb/models.py index 60597d3c..33cf81e2 100644 --- a/epdb/models.py +++ b/epdb/models.py @@ -2574,7 +2574,7 @@ class Node(EnviPathModel, AliasMixin, ScenarioMixin, AdditionalInformationMixin) collected[str(ai.scenario.uuid)]["proposed"] = True if ai.type == "Confidence": - collected[str(ai.scenario.uuid)]["Confidence"] = ai.get().level + collected[str(ai.scenario.uuid)]["Confidence"] = ai.get().level.value if ai.type == "TransformationProductImportance": collected[str(ai.scenario.uuid)]["Transformation product importance"] = (