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

subdiv keys not found. #8

Open
lindenmckenzie opened this issue Jun 12, 2024 · 0 comments
Open

subdiv keys not found. #8

lindenmckenzie opened this issue Jun 12, 2024 · 0 comments
Assignees

Comments

@lindenmckenzie
Copy link

Hi team,

We're having some issues using berlin-py. What we're finding is that certain queries are causing errors like the following:

{"errors": [{"message": "'ant not found as subdiv key'", "error": [{"file": "\"/usr/local/lib/python3.10/site-packages/app/views/berlin.py\"", "function": "inberlin_searchmatches=[", "line": "67"}, {"file": "\"/usr/local/lib/python3.10/site-packages/app/views/berlin.py\"", "function": "in<listcomp>\"loc\":LocationModel.from_location(loc", "line": "69"}, {"file": "\"/usr/local/lib/python3.10/site-packages/app/models.py\"", "function": "infrom_locationsubdiv=[subdiv_str", "line": "46"}]}]}

As discussed, we've implemented a workaround but the key being provided is from the model so should be found in the database? Seems like there's a mismatch here. Here's some example queries:

SGGN
SGHR
D7KY
charities+that+help+poverty
poverty
One+portal
kong+term
average+income+taxes+and+benefits+decile+groups
equipment+life+expectancy+list
Interest+rate

Thanks,

Linden

@KamenDimitrov97 KamenDimitrov97 self-assigned this Jun 12, 2024
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

No branches or pull requests

2 participants