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

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

parent 18521a40
Branches f-filesystem-cleanup
No related tags found
2 merge requests!57RELEASE 0.7.3,!52F refactor high level api
Pipeline #20476 passed with warnings
...@@ -356,8 +356,13 @@ def merge_entities(entity_a: Entity, entity_b: Entity): ...@@ -356,8 +356,13 @@ def merge_entities(entity_a: Entity, entity_b: Entity):
for key in diff_r2["properties"]: for key in diff_r2["properties"]:
if key in diff_r1["properties"]: if key in diff_r1["properties"]:
if (diff_r1["properties"][key]["importance"] != if ("importance" in diff_r1["properties"][key] and
diff_r2["properties"][key]["importance"]): "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() raise NotImplementedError()
for attribute in ("datatype", "unit", "value"): for attribute in ("datatype", "unit", "value"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment