Files
danbooru/app/logical
evazion 93dd952949 pagination: refactor to avoid counting pages in API.
Previously the page-based (numbered) paginator would always count the
total_pages, even in API calls when it wasn't needed. This could be very
slow in some cases. Refactor so that total_pages isn't calculated unless
it's called.

While we're at it, refactor to condense all the sequential vs. numbered
pagination logic into one module. This incidentally fixes a couple more
bugs:

* "page=b0" returned all pages rather than nothing.
* Bad parameters like "page=blaha123" and "page=a123blah" were accepted.
2019-10-07 22:01:37 -05:00
..
2018-08-24 12:10:51 -07:00
2014-02-28 16:40:11 -08:00
2019-09-27 21:12:53 -05:00
2019-08-30 20:03:36 -05:00
2019-08-01 00:06:18 -05:00
2018-09-11 14:19:17 -07:00
2018-08-24 12:10:51 -07:00
2018-06-23 11:15:14 -07:00
2018-08-24 12:10:51 -07:00
2017-10-12 16:36:17 -07:00