Skip to content
Snippets Groups Projects
Commit 2226adba authored by George Marchment's avatar George Marchment
Browse files

update user view

parent 6e395b95
No related branches found
No related tags found
No related merge requests found
Pipeline #14118 passed with stage
in 2 minutes and 48 seconds
...@@ -583,13 +583,15 @@ def get_names_tab(dico, tab): ...@@ -583,13 +583,15 @@ def get_names_tab(dico, tab):
def get_name_new_node(new_nodes, relevant_modules): def get_name_new_node(new_nodes, relevant_modules):
for r in relevant_modules: for r in relevant_modules:
if([r] in new_nodes): for new in new_nodes:
return r if(r in new):
return r
#Arbitrary choice of choosing the name with the longest name #Arbitrary choice of choosing the name with the longest name
longest_name = new_nodes[0][0] longest_name = new_nodes[0][0]
for name in new_nodes: for name in new_nodes:
if(len(longest_name)<len(name[0])): if(len(longest_name)<len(name[0])):
longest_name = name[0] longest_name = name[0]
return longest_name return longest_name
def check_same_elements(list1, list2): def check_same_elements(list1, list2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment