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

Skip bills with restricted view #251

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Skip bills with restricted view #251

merged 1 commit into from
Oct 17, 2018

Conversation

reginafcompton
Copy link
Contributor

This PR handles the first condition described here Metro-Records/la-metro-councilmatic#345 (comment).

# If this Boolean field is True, then do not scrape the Bill.
# This issue explains why a restricted Bill might appear (unwelcome) in the Legistar API:
# https://github.com/datamade/la-metro-councilmatic/issues/345#issuecomment-421184826
if matter['MatterRestrictViewViaWeb']:
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this always true or false and not none?

Copy link
Contributor Author

@reginafcompton reginafcompton Oct 17, 2018

Choose a reason for hiding this comment

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

The Legistar docs describe it as a boolean: http://webapi.legistar.com/Help/Api/PUT-v1-Client-Matters-MatterId A boolean, I believe, can be null, but that does not seem possible in this case, since the value of MatterRestrictViewViaWeb is determined Metro staff checking a box. That is, if the box is checked, then the value is true, and if the box is unchecked, then the value is false.

Copy link
Collaborator

@hancush hancush left a comment

Choose a reason for hiding this comment

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

lgtm!

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.

2 participants