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

correct var name

parent 6790903a
No related branches found
No related tags found
2 merge requests!123REL: Release v0.6.0,!115Use cached_get_entity_by
Pipeline #36357 failed
This commit is part of merge request !115. Comments created here will be created in the context of that merge request.
...@@ -733,7 +733,7 @@ class Crawler(object): ...@@ -733,7 +733,7 @@ class Crawler(object):
parent_updates = db.Container() parent_updates = db.Container()
for entity in to_be_updated: for entity in to_be_updated:
old_entity = cached_get_entity_by(id=entity.id) old_entity = cached_get_entity_by(eid=entity.id)
# Check whether the parents have been changed and add them if missing # Check whether the parents have been changed and add them if missing
# in the old entity: # in the old entity:
......
...@@ -588,7 +588,7 @@ def test_replace_entities_with_ids(crawler): ...@@ -588,7 +588,7 @@ def test_replace_entities_with_ids(crawler):
assert a.get_property("C").value == [12345, 233324] assert a.get_property("C").value == [12345, 233324]
def mock_get_entity_by(id=None, name=None): def mock_get_entity_by(eid=None, name=None):
if id is not None: if id is not None:
candidates = [el for el in list(full_data.values()) if el.id == id] candidates = [el for el in list(full_data.values()) if el.id == id]
if len(candidates) > 0: if len(candidates) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment