Commit 978d11f9 authored by Bogdan's avatar Bogdan

Small Semantik linking Message Handler edit

parent eef62d04
......@@ -100,12 +100,12 @@ class MessageHandler:
#check for duplicates
#TODO EDIT NODES_IN_DB RETURN
nodes_in_db = self._repository.get_nodes_from_ids(unique_id_list)
if len(nodes_in_db) > 0: #found duplicates
#remove duplicates from nodes:
for node in nodes:
if node["UniqueId"] in nodes_in_db:
nodes.remove(node)
# nodes_in_db = self._repository.get_nodes_from_ids(unique_id_list)
# if len(nodes_in_db) > 0: #found duplicates
# #remove duplicates from nodes:
# for node in nodes:
# if node["UniqueId"] in nodes_in_db:
# nodes.remove(node)
#no duplicates anymore
if len(nodes) > 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment