Skip to content

Conversation

@Kilo59
Copy link
Collaborator

@Kilo59 Kilo59 commented Mar 26, 2020

Addresses #179

@ExpDev07 ExpDev07 linked an issue Mar 26, 2020 that may be closed by this pull request
@Kilo59 Kilo59 requested a review from ExpDev07 March 26, 2020 02:15
@Kilo59 Kilo59 force-pushed the no-locations-data-404 branch from 7283815 to 0368880 Compare March 26, 2020 02:18
@ExpDev07
Copy link
Owner

tests

@Kilo59 Kilo59 force-pushed the no-locations-data-404 branch from 0368880 to d464351 Compare March 26, 2020 02:25
@Kilo59
Copy link
Collaborator Author

Kilo59 commented Mar 26, 2020

tests

fixed the tests

Copy link
Owner

@ExpDev07 ExpDev07 left a comment

Choose a reason for hiding this comment

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

LGTM.

locations = [location for location in locations if str(getattr(location, key)).lower() == str(value)]
except AttributeError:
pass
if not locations:
Copy link
Owner

Choose a reason for hiding this comment

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

Shouldn't this be moved outside of the loop?

@ExpDev07 ExpDev07 merged commit e4e7b4b into ExpDev07:master Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source with missing county data should return 404

2 participants