Skip to content

Commit

Permalink
Fix check for restricted attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys0dev committed Oct 6, 2024
1 parent 1d1bc1e commit 836add1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cl/recap/mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,12 @@ async def merge_attachment_page_data(
if not all(sanity_checks):
continue

# Missing on some restricted docs (see Juriscraper)
if "page_count" in attachment and attachment["page_count"] is None:
# Attachment 0 may not have page count since it is the main rd.
if 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 836add1

Please sign in to comment.