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

entity autocompletes are returning 500 #6

Closed
sennierer opened this issue Oct 10, 2023 · 1 comment
Closed

entity autocompletes are returning 500 #6

sennierer opened this issue Oct 10, 2023 · 1 comment

Comments

@sennierer
Copy link
Collaborator

https://oebl-pnp.acdh-dev.oeaw.ac.at/apis/entities/autocomplete/institution/?q=Akademie

thats due to

File "/home/vscode/.local/lib/python3.11/site-packages/apis_core/apis_entities/autocomplete3.py", line 163, in get
    for x in settings.APIS_ENTITIES[ent_model_name]["search"]
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'search'
@b1rger
Copy link
Contributor

b1rger commented Oct 10, 2023

This is fixed in acdh-oeaw/apis-core-rdf#322 - it now falls back to searching in all fields that are not relations
I've cherry-picked the PR into the oebl-pnp branch of apis-core-rdf

@b1rger b1rger closed this as completed Oct 11, 2023
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