From 6235b30fff7a6c0af05ec3a1f6797ad535368594 Mon Sep 17 00:00:00 2001 From: Thomas Lauterbach <2452988+DrRSatzteil@users.noreply.github.com> Date: Fri, 5 Jan 2024 23:52:52 +0100 Subject: [PATCH] worker.py aktualisieren Here? --- mayanmindee/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayanmindee/worker.py b/mayanmindee/worker.py index c3792ae..fef0b63 100644 --- a/mayanmindee/worker.py +++ b/mayanmindee/worker.py @@ -276,7 +276,7 @@ def process_custom(document_id: int, document_type: str) -> None: ) for field_name, metadata_mappings in required_fields.items(): - result = parsed_doc.prediction.fields[field_name].contents_string() + result = parsed_doc.document.prediction.fields[field_name].contents_string() for metadata_mapping in metadata_mappings: if "postprocess" in metadata_mapping[1]: result = post_processing(