-
Notifications
You must be signed in to change notification settings - Fork 826
[bug 1122539] Handle the 0 case #2352
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
Conversation
kitsune/search/tests/test_api.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter failed in travis because q1 isn't used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. I'll fix that.
If max_questions or max_documents (or both) are 0, then we should do the least amount of work and just return [].
|
^^^ Fixes the lint issue. |
|
It seems like you only did this for the questions function, not the documents function? |
|
Oops--you're right. I thought it got called twice. I'll do another fix later today. |
If max_questions or max_documents (or both) are 0, then we should do the
least amount of work and just return [].
r?