Skip to content

Commit

Permalink
Fix JSON page count for Anime Pictures (fix #1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 25, 2018
1 parent 6d3f35f commit bf9b98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/sites/Anime pictures/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const source: ISource = {
return {
images,
imageCount: data["posts_count"],
pageCount: data["max_pages"],
pageCount: data["max_pages"] + 1, // max_pages is an index, not a count, and pages start at 0
};
},
},
Expand Down

0 comments on commit bf9b98b

Please sign in to comment.