z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
761 stars 82 forks source link

Partial paginated search implementation #688

Open ahmubashshir opened 1 year ago

ahmubashshir commented 1 year ago

Pagination in search dialog

Implementation

  1. API libraries must implement paginated .search(), if pagination is unsupported, page count will be 1
  2. If engine.search(...) is called with page=N ti returns paginated result, otherwise it returns an array of first n results (old behavior)
  3. paginated results are returned like this [ results[], len(results[]), pagenum, pages ]

Related #687