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

LA Metro: Skip attachments that are not visible in the web interface #332

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

hancush
Copy link
Collaborator

@hancush hancush commented Nov 17, 2020

This PR adds Logic to the Metro bill scraper to skip attachments if MatterAttachmentShowOnInternetPage is False. It would probably be ideal to handle this similarly to the way we do bills, i.e., scrape a record of the attachment but don't scrape any metadata or show in the user interface, but there is an immediate need to suppress an attachment on the live site, and this is the fastest way to achieve it, for now.

Testing instructions

  • Scrape a bill with a suppressed attachment and confirm that the output does not have any related documents: pupa update --scrape lametro bills matter_ids=7212

@hancush hancush requested a review from fgregg November 17, 2020 20:06
@hancush
Copy link
Collaborator Author

hancush commented Nov 17, 2020

@fgregg Responding to urgent need. Requested your review as an FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant