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

ENH: Use merge_id_with_resolved_entity=True

parent 310fad19
No related branches found
No related tags found
3 merge requests!160STY: styling,!141FIX: Resolve referneces to existing entities correctly,!140New f fix merge
...@@ -21,7 +21,7 @@ python_requires = >=3.7 ...@@ -21,7 +21,7 @@ python_requires = >=3.7
install_requires = install_requires =
importlib-resources importlib-resources
caosadvancedtools >= 0.7.0 caosadvancedtools >= 0.7.0
linkahead >= 0.13.3 linkahead > 0.13.2
yaml-header-tools >= 0.2.1 yaml-header-tools >= 0.2.1
pyyaml pyyaml
odfpy #make optional odfpy #make optional
......
...@@ -601,10 +601,7 @@ class Crawler(object): ...@@ -601,10 +601,7 @@ class Crawler(object):
elif self.get_from_any_cache(identifiable) is not None: elif self.get_from_any_cache(identifiable) is not None:
# We merge the two in order to prevent loss of information # We merge the two in order to prevent loss of information
newrecord = self.get_from_any_cache(identifiable) newrecord = self.get_from_any_cache(identifiable)
try: merge_entities(newrecord, record, merge_id_with_resolved_entity=True)
merge_entities(newrecord, record)
except EntityMergeConflictError:
continue
Crawler.bend_references_to_new_object( Crawler.bend_references_to_new_object(
old=record, new=newrecord, entities=flat + to_be_updated + to_be_inserted) old=record, new=newrecord, entities=flat + to_be_updated + to_be_inserted)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment