From 920dccf869b1bcfd2d70de68bf6f27af7e2301dc Mon Sep 17 00:00:00 2001 From: vladd-bit Date: Wed, 2 Aug 2023 10:52:15 +0100 Subject: [PATCH] Linting fix. --- medcat_service/nlp_processor/medcat_processor.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/medcat_service/nlp_processor/medcat_processor.py b/medcat_service/nlp_processor/medcat_processor.py index 02ee16c..111cee0 100644 --- a/medcat_service/nlp_processor/medcat_processor.py +++ b/medcat_service/nlp_processor/medcat_processor.py @@ -315,7 +315,6 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona :return: """ - for i in range(len(in_documents)): in_ct = in_documents[i] if i in annotations.keys(): @@ -327,8 +326,7 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona out_res = {"text": str(in_ct["text"]), "annotations": entities, "success": True, - "timestamp": NlpProcessor._get_timestamp(), - } + "timestamp": NlpProcessor._get_timestamp()} out_res.update(additional_info) else: # Don't fetch an annotation set @@ -336,10 +334,7 @@ def _generate_result(self, in_documents, annotations, invalid_doc_idx, additiona out_res = {"text": in_ct["text"], "annotations": [], "success": True, - "timestamp": NlpProcessor._get_timestamp() - } - - + "timestamp": NlpProcessor._get_timestamp()} # append the footer if "footer" in in_ct: