From f4c158befd2591ac81e0e3f4c83a232ec8060067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Thu, 6 Oct 2022 16:53:29 +0200 Subject: [PATCH] FIX: add missing arguments --- src/caoscrawler/crawl.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index 0f066406..b3195a7a 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -775,7 +775,7 @@ class Crawler(object): pass @staticmethod - def execute_parent_updates_in_list(to_be_updated): + def execute_parent_updates_in_list(to_be_updated, securityMode, run_id, unique_names): """ Execute the updates of changed parents. @@ -896,9 +896,8 @@ class Crawler(object): self.remove_unnecessary_updates(to_be_updated, identified_records) if commit_changes: - # TODO: Currently, this mitigation for parent updates does not implement security mode and run id - self.execute_parent_updates_in_list(to_be_updated) - + self.execute_parent_updates_in_list(to_be_updated, securityMode=self.securityMode, + run_id=self.run_id, unique_names=unique_names) self.execute_inserts_in_list( to_be_inserted, self.securityMode, self.run_id, unique_names=unique_names) self.execute_updates_in_list( -- GitLab