Skip to content
Snippets Groups Projects
Commit c2198c0b authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: compare entities had not compared values of entites

parent 8d9e8166
No related branches found
No related tags found
2 merge requests!36RELEASE: 0.6.1,!35F fix compare entities branch2
......@@ -639,6 +639,13 @@ def compare_entities(old_entity: Entity, new_entity: Entity):
newdiff["properties"][prop.name]["datatype"] = \
matching[0].datatype
if ((prop.value is not None and
matching[0].value is not None) and
(prop.value != matching[0].value)):
olddiff["properties"][prop.name]["value"] = prop.value
newdiff["properties"][prop.name]["value"] = \
matching[0].value
if (len(newdiff["properties"][prop.name]) == 0
and len(olddiff["properties"][prop.name]) == 0):
newdiff["properties"].pop(prop.name)
......
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