diff options
author | 2020-12-13 18:58:19 +0100 | |
---|---|---|
committer | 2020-12-13 18:58:19 +0100 | |
commit | aaf733373e7f3dc59263df79a6a19cc87db4b27c (patch) | |
tree | 409bf1c443686b9c8174e24975b9a8b747fc7b5b | |
parent | Merge pull request #435 from python-discord/hotfix/lemon/front-page-project-s... (diff) |
Increase per_page to 100 for GitHub API call.
Snekbox was being banished to page 2 and we were not iterating pages, so
it was not appearing in the data we got from our call to /repos. This
commit changes the request to use `per_page=100`, which will work at
least until we have >100 repos in our organisation.
-rw-r--r-- | pydis_site/apps/home/views/home.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py index 97253a0c..0e5d4edf 100644 --- a/pydis_site/apps/home/views/home.py +++ b/pydis_site/apps/home/views/home.py @@ -16,7 +16,7 @@ log = logging.getLogger(__name__) class HomeView(View): """The main landing page for the website.""" - github_api = "https://api.github.com/users/python-discord/repos" + github_api = "https://api.github.com/users/python-discord/repos?per_page=100" repository_cache_ttl = 3600 # Which of our GitHub repos should be displayed on the front page, and in which order? |