From e05079e61e922f4c14032dbb5aaffd33bae4afd7 Mon Sep 17 00:00:00 2001 From: Ebru Yucesar Date: Wed, 26 Jun 2024 09:39:15 -0400 Subject: [PATCH] add all case text types to the check --- web/main/legal_document_sources.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/main/legal_document_sources.py b/web/main/legal_document_sources.py index 8b7564899..a178b9827 100644 --- a/web/main/legal_document_sources.py +++ b/web/main/legal_document_sources.py @@ -588,7 +588,15 @@ def pull(legal_doc_source, id): sub_opinion_jsons.append(CourtListener.get_opinion_body(opinion)) text_source = "" - for content_type in ("xml_harvard", "html", "plain_text"): + for content_type in ( + "xml_harvard", + "html_with_citations", + "html_columbia", + "html_lawbox", + "html_anon_2020", + "html", + "plain_text", + ): case_text = "".join(sub_opinion[content_type] for sub_opinion in sub_opinion_jsons) if case_text: case_text = case_text.replace('', "")