Skip to content

Commit

Permalink
remove div with unexisting method from template, remove spaces, sort …
Browse files Browse the repository at this point in the history
…opinions
  • Loading branch information
teovin committed Jun 25, 2024
1 parent f522cf2 commit 6562520
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions web/main/legal_document_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ def pull(legal_doc_source, id):
resp.raise_for_status()
cluster = resp.json()
cluster["html_info"] = {"source": "court listener"}
cluster["sub_opinions"].sort(key=lambda x: int(x.split("/")[-2]))

if cluster["filepath_json_harvard"]:
harvard_xml_data = ""
Expand Down
5 changes: 2 additions & 3 deletions web/main/templates/includes/legal_doc_sources/cap_header.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<header class="case-header legal-doc-header" >
{% with md=legal_doc.metadata %}
<div class="court" data-custom-style="Case Header"> {{ md.court.name }}</div>
<div class="title" data-custom-style="Case Header">{{ legal_doc.get_title }}</div>
<div class="citation" data-custom-style="Case Header"> {{legal_doc.cite_string}} </div>
<div class="court" data-custom-style="Case Header">{{ md.court.name }}</div>
<div class="citation" data-custom-style="Case Header">{{ legal_doc.cite_string }}</div>
{% if md.docket_number %}<div class="docketnumber" data-custom-style="Case Header">{{ md.docket_number }}</div>{% endif %}
{% if md.decision_date %}<div class="decisiondate" data-custom-style="Case Header">{{ md.decision_date }}</div>{% endif %}
{% endwith %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="case-header legal-doc-header" >
{% with md=legal_doc.metadata %}
<div class="court" data-custom-style="Case Header">{{ md.court.name }}</div>
<div class="citation" data-custom-style="Case Header">{{ legal_doc.cite_string }} </div>
<div class="citation" data-custom-style="Case Header">{{ legal_doc.cite_string }}</div>
{% if md.docket_number %}<div class="docketnumber" data-custom-style="Case Header">{{ md.docket_number }}</div>{% endif %}
{% if md.date_filed %}<div class="decisiondate" data-custom-style="Case Header">{{ md.date_filed }}</div>{% endif %}
{% endwith %}
Expand Down

0 comments on commit 6562520

Please sign in to comment.