Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(district): Refine generateFileName method for large documents #399

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Sep 19, 2024

This PR fixes freelawproject/recap#366 by refining the generateFileName method to accurately compute zip file names, even for cases where the first document exceeds 30 pages. Previously, the logic lead to an error in such cases. This update addresses the issue by employing a more robust approach to compute the file name.

Here are some GIFs demonstrating the download functionality:

  • Downloading Large Zip Files (Over 30 Pages):

Screen Recording 2024-09-18 at 8 29 51 PM

  • Downloading Smaller Documents (Under 30 Pages):

Screen Recording 2024-09-18 at 8 31 10 PM

The generateFileName method has been refined to accurately compute zip file names, even for cases where the first document exceeds 30 pages. Previously, the logic lead to an error in such cases. This update addresses the issue by employing a more robust approach to compute the file name.
@ERosendo ERosendo force-pushed the 366-fix-download-zip-files-with-more-than-30-pages branch from d498ddb to d84fd70 Compare September 19, 2024 00:48
@ERosendo ERosendo marked this pull request as ready for review September 19, 2024 00:51
Copy link
Member

@mlissner mlissner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Nice to get this fixed.

@mlissner mlissner merged commit 686fb97 into main Sep 19, 2024
8 checks passed
@mlissner mlissner deleted the 366-fix-download-zip-files-with-more-than-30-pages branch September 19, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Cannot download 30+ page documents from PACER
2 participants