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

Import API and/or web source url for bill #235

Merged
merged 2 commits into from
Feb 11, 2019
Merged

Conversation

reginafcompton
Copy link
Contributor

@reginafcompton reginafcompton commented Feb 11, 2019

This PR handles issue #227

It also prepares for scraper changes: opencivicdata/scrapers-us-municipal#259

for source in bill_info['sources']:
if source['note'] == 'web':
if source['note'] == 'api':
Copy link
Member

Choose a reason for hiding this comment

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

if i'm reading this correctly, if there is both an api source and a web source, this code will prefer the api source. I think we want the opposite behavior, don't we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I was thinking we'd want the API source, but actually we should return the web url, since that gets rendered in some of Councilmatic display logic. Okee.

@reginafcompton reginafcompton merged commit 7ceb67b into master Feb 11, 2019
@reginafcompton reginafcompton deleted the source-url branch February 11, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants