Skip to content

No locations data 404#192

Merged
ExpDev07 merged 2 commits into
ExpDev07:masterfrom
Kilo59:no-locations-data-404
Mar 26, 2020
Merged

No locations data 404#192
ExpDev07 merged 2 commits into
ExpDev07:masterfrom
Kilo59:no-locations-data-404

Conversation

@Kilo59

@Kilo59 Kilo59 commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Owner

tests

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

Kilo59 commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator Author

tests

fixed the tests

@ExpDev07 ExpDev07 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM.

Comment thread app/router/locations.py
locations = [location for location in locations if str(getattr(location, key)).lower() == str(value)]
except AttributeError:
pass
if not locations:

Copy link
Copy Markdown
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