Skip to content

Commit

Permalink
Increase per_page for GH API request in download stats page
Browse files Browse the repository at this point in the history
Eventually we will exceed the default limit of 30
  • Loading branch information
GarboMuffin committed May 2, 2022
1 parent 0f6cd31 commit ea8ab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>Packager Extras</h1>
<main id="packager-extras"><p>Loading...</p></main>
<script>
const fetchStats = (repo, main) => {
fetch(`https://api.github.com/repos/${repo}/releases`)
fetch(`https://api.github.com/repos/${repo}/releases?per_page=100`)
.then((r) => {
if (!r.ok) throw new Error('Unexpected status code: ' + r.status);
return r.json();
Expand Down

0 comments on commit ea8ab5a

Please sign in to comment.