Skip to content

Commit

Permalink
Merge pull request #4536 from ttys0dev/fix-restricted-attachments
Browse files Browse the repository at this point in the history
Fix check for restricted attachments
  • Loading branch information
mlissner authored Oct 19, 2024
2 parents 6267f3c + eb8874e commit 7156c96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cl/recap/mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,15 @@ async def merge_attachment_page_data(
if not all(sanity_checks):
continue

# Missing on some restricted docs (see Juriscraper)
# Attachment 0 may not have page count since it is the main rd.
if (
"page_count" in attachment
and attachment["page_count"] is None
and attachment["attachment_number"] != 0
):
continue

# Appellate entries with attachments don't have a main RD, transform it
# to an attachment. In ACMS attachment pages, all the documents use the
# same pacer_doc_id, so we need to make sure only one is matched to the
Expand Down

0 comments on commit 7156c96

Please sign in to comment.