Skip to content
Snippets Groups Projects

F fix merge entity conflicts

Merged Florian Spreckelsen requested to merge f-fix-merge-entity-conflicts into dev
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -269,7+269,7 @@
olddiff["properties"][prop.name] = {}
if (old_entity.get_importance(prop.name) !=
new_entity.get_importance(prop.name)):
olddiff["properties"][prop.name]["importance"] = \
old_entity.get_importance(prop.name)
newdiff["properties"][prop.name]["importance"] = \
@@ -297,7+297,7 @@
# list of references
elif isinstance(prop.value, list) and isinstance(matching[0].value, list):
# all elements in both lists actually are entity objects
# TODO: check, whether mixed cases can be allowed or should lead to an error
if all([isinstance(x, Entity) for x in prop.value]) and all([isinstance(x, Entity) for x in matching[0].value]):
# can't be the same if the lengths are different
if len(prop.value) == len(matching[0].value):
Loading