From 37be65ca13113f504d5380b4a3f7797e8389f3d1 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Tue, 17 Sep 2024 16:09:17 +0200 Subject: [PATCH] maintain reported section between root->cloud --- fixcore/fixcore/model/graph_access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fixcore/fixcore/model/graph_access.py b/fixcore/fixcore/model/graph_access.py index 2276be78b0..ed126fbf6d 100644 --- a/fixcore/fixcore/model/graph_access.py +++ b/fixcore/fixcore/model/graph_access.py @@ -409,8 +409,9 @@ def check_complete(self) -> None: for edge_type in EdgeTypes.all: key = GraphAccess.edge_key(rid, succ, edge_type) if self.graph.has_edge(rid, succ, key): + data = self.graph.get_edge_data(rid, succ, key) self.graph.remove_edge(rid, succ, key) - self.add_edge("root", succ, edge_type) + self.add_edge("root", succ, edge_type, data.get("reported")) self.graph.remove_node(rid)