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

get_company_updates and get_profile_updates: optimize use of max_results #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbignon
Copy link

@rbignon rbignon commented Jun 26, 2022

  1. do not set [] as a default parameter, as it is a global list and if the method is called twice, previous results will be included
  2. extend results before checking if results limit is reached, it prevents useless API calls
  3. return only required results

1. do not set [] as a default parameter, as it is a global list and if
   the method is called twice, previous results will be included
2. extend results *before* checking if results limit is reached, it
   prevents useless API calls
3. return only required results
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

Successfully merging this pull request may close these issues.

None yet

1 participant