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

fix arguments

parent edf47c2d
No related branches found
No related tags found
3 merge requests!108Release 0.5.0,!106Suggestion htw,!104Create a new scanner module and move functions from crawl module there
Pipeline #34912 failed
......@@ -1045,7 +1045,7 @@ def crawler_main(crawled_directory_path: str,
remove_prefix = prefix
if dry_run:
ins, upd = crawler.synchronize(crawled_data, commit_changes=False)
ins, upd = crawler.synchronize(commit_changes=False, crawled_data=crawled_data)
inserts = [str(i) for i in ins]
updates = [str(i) for i in upd]
with open("dry.yml", "w") as f:
......@@ -1091,7 +1091,8 @@ def crawler_main(crawled_directory_path: str,
raise RuntimeError("Missing RecordTypes: {}".
format(", ".join(notfound)))
crawler.synchronize(crawled_data, commit_changes=True, unique_names=unique_names)
crawler.synchronize(commit_changes=True, unique_names=unique_names,
crawled_data=crawled_data)
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment