Use per_page on GH API call

Co-authored-by: rex.tsou <akccakccwww@gmail.com>
master
James 5 years ago committed by GitHub
parent 025d08a397
commit 31d5ad8974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
function getContributors(page) {
if (window.jQuery) {
const container = $('#contributors');
jQuery.ajax(`https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors?page=${page}`, {})
jQuery.ajax(`https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors?page=${page}&per_page=100`, {})
.done(function (data) {
if (data.length === 0) {
return;

Loading…
Cancel
Save