Skip to content

fix get projects limit #41

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fix get projects limit #41

wants to merge 3 commits into from

Conversation

ccl0326
Copy link

@ccl0326 ccl0326 commented Sep 5, 2016

as title.

@ccl0326
Copy link
Author

ccl0326 commented Sep 8, 2016

hi,@rande can you follow this pr? we need fix the default limit number, if you consider this is fine, i can rewrite a push request more robust.

if err == nil {
projects = append(projects, pageProjects...)
page++
if len(pageProjects) < max_page_size {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll have an extra call if the last page contains extactly max_page_size items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants