Only fetch 5 entries per page to limit GH API usage

This commit is contained in:
Bruno Alla 2020-08-12 13:11:54 +01:00
parent 266596f16b
commit 632bbd0a08

View File

@ -39,7 +39,7 @@ def iter_recent_authors():
Use Github API to fetch recent authors rather than
git CLI to work with Github usernames.
"""
repo = Github().get_repo("pydanny/cookiecutter-django")
repo = Github(per_page=5).get_repo("pydanny/cookiecutter-django")
recent_pulls = repo.get_pulls(
state="closed", sort="updated", direction="desc"
).get_page(0)