Skip to content

Commit

Permalink
fix: add default to page_wise param
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Oct 2, 2024
1 parent 8b6a49c commit 3882e7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ocrd_network/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion src/ocrd_network/client_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3882e7a

Please sign in to comment.