Skip to content
Snippets Groups Projects
Commit d006797d authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Revert "wip"

This reverts commit 3997bcf9.
parent 3997bcf9
No related branches found
No related tags found
2 merge requests!159Release 0.16.o,!157compare entities and parent/property lists
Pipeline #57270 passed with warnings
......@@ -550,7 +550,8 @@ def merge_entities(entity_a: Entity,
for attribute in ("datatype", "unit", "value"):
if (attribute in diff_r2["properties"][key] and
diff_r2["properties"][key][attribute] is not None):
if (diff_r1["properties"][key][attribute] is None):
if (attribute not in diff_r1["properties"][key] or
diff_r1["properties"][key][attribute] is None):
setattr(entity_a.get_property(key), attribute,
diff_r2["properties"][key][attribute])
elif force:
......
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