From 3882e7abf397650ece1e36798232cb148922a43d Mon Sep 17 00:00:00 2001 From: Mehmed Mustafa Date: Wed, 2 Oct 2024 15:17:46 +0200 Subject: [PATCH] fix: add default to page_wise param --- src/ocrd_network/client.py | 2 +- src/ocrd_network/client_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocrd_network/client.py b/src/ocrd_network/client.py index 152199794..bb7cf4dbf 100644 --- a/src/ocrd_network/client.py +++ b/src/ocrd_network/client.py @@ -60,7 +60,7 @@ def send_processing_job_request(self, processor_name: str, req_params: dict) -> return post_ps_processing_request( ps_server_host=self.server_addr_processing, processor=processor_name, job_input=req_params) - def send_workflow_job_request(self, path_to_wf: str, path_to_mets: str, page_wise: bool): + def send_workflow_job_request(self, path_to_wf: str, path_to_mets: str, page_wise: bool = False): return post_ps_workflow_request( ps_server_host=self.server_addr_processing, path_to_wf=path_to_wf, path_to_mets=path_to_mets, page_wise=page_wise) diff --git a/src/ocrd_network/client_utils.py b/src/ocrd_network/client_utils.py index 51db2681a..4eaf4ea95 100644 --- a/src/ocrd_network/client_utils.py +++ b/src/ocrd_network/client_utils.py @@ -86,7 +86,7 @@ def post_ps_workflow_request( ps_server_host: str, path_to_wf: str, path_to_mets: str, - page_wise: bool, + page_wise: bool = False, ) -> str: request_url = f"{ps_server_host}/workflow/run?mets_path={path_to_mets}&page_wise={'True' if page_wise else 'False'}" response = request_post(