Skip to content
Snippets Groups Projects
Commit bdb00397 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Use merge_id_with_resolved_entity=True

parent ca00cd75
Branches
Tags
2 merge requests!160STY: styling,!140New f fix merge
...@@ -647,7 +647,8 @@ class Crawler(object): ...@@ -647,7 +647,8 @@ class Crawler(object):
# the same obejct. # the same obejct.
# We merge the two in order to prevent loss of information # We merge the two in order to prevent loss of information
try: try:
merge_entities(newrecord, record, merge_references_with_empty_diffs=False) merge_entities(
newrecord, record, merge_references_with_empty_diffs=False, merge_id_with_resolved_entity=True)
except EntityMergeConflictError: except EntityMergeConflictError:
_treat_merge_error_of(newrecord, record) _treat_merge_error_of(newrecord, record)
# We cannot merge but it is none of the clear case where merge is # We cannot merge but it is none of the clear case where merge is
...@@ -687,7 +688,8 @@ class Crawler(object): ...@@ -687,7 +688,8 @@ class Crawler(object):
# missing record?) # missing record?)
elif self._has_missing_object_in_references(identifiable, referencing_entities): elif self._has_missing_object_in_references(identifiable, referencing_entities):
to_be_inserted.append(record) to_be_inserted.append(record)
self.add_to_remote_missing_cache(record, identifiable) self.add_to_remote_missing_cache(
record, identifiable, merge_id_with_resolved_entity=True)
del flat[i] del flat[i]
resolved_references = True resolved_references = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment