Skip to content

Commit

Permalink
add all case text types to the check
Browse files Browse the repository at this point in the history
  • Loading branch information
teovin committed Jun 26, 2024
1 parent 6afd2c2 commit e05079e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/main/legal_document_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<?xml version="1.0" encoding="utf-8"?>', "")
Expand Down

0 comments on commit e05079e

Please sign in to comment.