Files
danbooru/config/initializers
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-04-06 18:09:57 -07:00
2010-02-04 15:08:49 -05:00
2018-06-14 17:52:41 -07:00
2014-04-16 17:43:34 -07:00
2014-04-16 17:43:34 -07:00
2015-01-22 16:20:25 -08:00
2015-08-19 15:53:13 -07:00