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

Check that the total count of records to return does not exceed 2,000 #7

Closed
aschleg opened this issue Jun 26, 2018 · 1 comment
Closed
Assignees

Comments

@aschleg
Copy link
Owner

aschleg commented Jun 26, 2018

The Petfinder API limits a single call to a maximum of 2,000 records. The only way to return a max 2,000 records is to use the pages parameter in combination with the count parameter. If the multiple of pages and count exceeds 2000, raise ValueError.

@aschleg
Copy link
Owner Author

aschleg commented Jun 27, 2018

Issue fixed with commit 9741f69. Test added to ensure behavior is consistent with desired functionality.

@aschleg aschleg closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant