Skip to content

Commit

Permalink
Improve reliability of View multiple documents detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys0dev committed Dec 2, 2023
1 parent aea24ff commit 2a0286a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juriscraper/pacer/docket_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,8 +1200,8 @@ def docket_entries(self):
# Detect if the report was generated with "View multiple documents"
# option enabled.
view_multiple_documents = False
view_selected_btn = self.tree.xpath("//input[@value='View Selected']")
if view_selected_btn:
view_multi_docs = self.tree.xpath("//form[@name='view_multi_docs']")
if view_multi_docs:
view_multiple_documents = True
docket_entries = []
for row in docket_entry_rows:
Expand Down

0 comments on commit 2a0286a

Please sign in to comment.