diff --git a/mayanmindee/worker.py b/mayanmindee/worker.py index c97c4a5..fa6cbb6 100644 --- a/mayanmindee/worker.py +++ b/mayanmindee/worker.py @@ -269,7 +269,7 @@ def process_custom(document_id: int, document_type: str, synchronous: False) -> for field_name, metadata_mappings in required_fields.items(): try: - result = parsed_doc.document.inference.prediction.fields[field_name].contents_string() + result = parsed_doc.document.inference.prediction.fields[field_name].value except: result = parsed_doc.document.inference.prediction.classifications[field_name].value for metadata_mapping in metadata_mappings: