From 1c0c1cd52597069c8b5f859b1857ce135e80e202 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Tue, 8 Nov 2022 16:22:28 +0100 Subject: [PATCH] ocrd processors: use snake_case for add_file --- qurator/tsvtools/ocrd_processors.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qurator/tsvtools/ocrd_processors.py b/qurator/tsvtools/ocrd_processors.py index 2cf72d4..f4fbff8 100644 --- a/qurator/tsvtools/ocrd_processors.py +++ b/qurator/tsvtools/ocrd_processors.py @@ -56,9 +56,9 @@ class OcrdNeatExportProcessor(Processor): page2tsv(input_file.local_filename, tsv_filepath, 'OCR', iiif_url, None, None, noproxy, 1.0, None, None, None, 1) self.workspace.add_file( - ID=file_id, + file_id=file_id, file_grp=self.output_file_grp, - pageId=page_id, + page_id=page_id, mimetype='text/tab-separated-values', local_filename=str(tsv_filepath)) @@ -98,9 +98,9 @@ class OcrdNeatImportProcessor(Processor): self.add_metadata(pcgts) pcgts.set_pcGtsId(file_id) self.workspace.add_file( - ID=file_id, + file_id=file_id, file_grp=self.output_file_grp, - pageId=page_id, + page_id=page_id, mimetype=MIMETYPE_PAGE, local_filename="%s/%s.xml" % (self.output_file_grp, file_id), content=to_xml(pcgts)