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

FIX: try_to_merge_later was initialized too late

parent b0e45311
No related branches found
No related tags found
1 merge request!160STY: styling
Pipeline #48075 passed
...@@ -700,6 +700,8 @@ class Crawler(object): ...@@ -700,6 +700,8 @@ class Crawler(object):
if ent.role == "Record" and len(ent.parents) == 0: if ent.role == "Record" and len(ent.parents) == 0:
raise RuntimeError(f"Records must have a parent.\n{ent}") raise RuntimeError(f"Records must have a parent.\n{ent}")
try_to_merge_later = []
# Check whether Records can be identified without identifiable # Check whether Records can be identified without identifiable
for i in reversed(range(len(flat))): for i in reversed(range(len(flat))):
record = flat[i] record = flat[i]
...@@ -739,7 +741,6 @@ class Crawler(object): ...@@ -739,7 +741,6 @@ class Crawler(object):
entity_was_treated = True entity_was_treated = True
# flat contains Entities which could not yet be checked against the remote server # flat contains Entities which could not yet be checked against the remote server
try_to_merge_later = []
while entity_was_treated and len(flat) > 0: while entity_was_treated and len(flat) > 0:
entity_was_treated = False entity_was_treated = False
referencing_entities = self.create_reference_mapping(all_records) referencing_entities = self.create_reference_mapping(all_records)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment