From c7e380014d12c36b39b7043246005dcc6d86009c Mon Sep 17 00:00:00 2001 From: Mehmed Mustafa Date: Tue, 30 Jul 2024 15:02:46 +0200 Subject: [PATCH 1/2] remove OCRD_ALL_TOOL_JSON_URL Co-authored-by: Konstantin Baierer --- src/ocrd_network/constants.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ocrd_network/constants.py b/src/ocrd_network/constants.py index f3d2de124..bfa137d9e 100644 --- a/src/ocrd_network/constants.py +++ b/src/ocrd_network/constants.py @@ -7,7 +7,6 @@ NETWORK_PROTOCOLS = ["http://", "https://"] OCRD_ALL_TOOL_JSON = "ocrd-all-tool.json" -OCRD_ALL_TOOL_JSON_URL = "https://ocr-d.de/js/ocrd-all-tool.json" # Used as a placeholder to lock all pages when no page_id is specified SERVER_ALL_PAGES_PLACEHOLDER = "all_pages" From 3d47640fb7e5a078e1a042640c9966bb437404f3 Mon Sep 17 00:00:00 2001 From: Mehmed Mustafa Date: Tue, 30 Jul 2024 15:08:58 +0200 Subject: [PATCH 2/2] remove: OCRD_ALL_TOOL_JSON_URL import --- src/ocrd_network/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocrd_network/utils.py b/src/ocrd_network/utils.py index babd57695..a2f563de4 100644 --- a/src/ocrd_network/utils.py +++ b/src/ocrd_network/utils.py @@ -16,7 +16,7 @@ from ocrd.workspace import Workspace from ocrd.mets_server import MpxReq from ocrd_utils import config, generate_range, REGEX_PREFIX, safe_filename, getLogger, resource_string -from .constants import OCRD_ALL_TOOL_JSON, OCRD_ALL_TOOL_JSON_URL +from .constants import OCRD_ALL_TOOL_JSON from .rabbitmq_utils import OcrdResultMessage