From 2226adba31546a6904e68e9df13a8724c9692ed1 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Mon, 14 Oct 2024 11:46:46 +0200
Subject: [PATCH] update user view

---
 src/outils_graph.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/outils_graph.py b/src/outils_graph.py
index 3d75e09..4ea75d9 100644
--- a/src/outils_graph.py
+++ b/src/outils_graph.py
@@ -583,13 +583,15 @@ def get_names_tab(dico, tab):
 
 def get_name_new_node(new_nodes, relevant_modules):
     for r in relevant_modules:
-        if([r] in new_nodes):
-            return r
+        for new in new_nodes:
+            if(r in new):
+                return r
     #Arbitrary choice of choosing the name with the longest name
     longest_name = new_nodes[0][0]
     for name in new_nodes:
         if(len(longest_name)<len(name[0])):
             longest_name = name[0]
+
     return longest_name
 
 def check_same_elements(list1, list2):
-- 
GitLab