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

FIX: problem when importance keyword was not present in diff output

parent f1243df7
No related branches found
No related tags found
3 merge requests!57RELEASE 0.7.3,!50F merge entities,!45F copy entity
Pipeline #20478 passed with warnings
......@@ -726,8 +726,13 @@ def merge_entities(entity_a: Entity, entity_b: Entity):
for key in diff_r2["properties"]:
if key in diff_r1["properties"]:
if (diff_r1["properties"][key]["importance"] !=
diff_r2["properties"][key]["importance"]):
if ("importance" in diff_r1["properties"][key] and
"importance" in diff_r2["properties"][key]):
if (diff_r1["properties"][key]["importance"] !=
diff_r2["properties"][key]["importance"]):
raise NotImplementedError()
elif ("importance" in diff_r1["properties"][key] or
"importance" in diff_r2["properties"][key]):
raise NotImplementedError()
for attribute in ("datatype", "unit", "value"):
......
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