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

Search API sometimes yields empty instead of 0 when no results #177

Open
Guillaume-Levrier opened this issue Apr 16, 2021 · 1 comment
Open

Comments

@Guillaume-Levrier
Copy link
Contributor

For example, the following request

https://www.nosdeputes.fr/recherche/crispr?format=json

yields the following results

{"start": 1, 
"end": 50, 
"last_result": ,  //Issue here, should be 0
"results": [ ]}

My guess is that it yields 0 when it fails to return the results (but the results do exist in the database), and it yields empty when the expression cannot be found in the database.

@Guillaume-Levrier
Copy link
Contributor Author

[update: the guess isn't validated, sometimes this sample request does yield a result]

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

1 participant