mirror of https://github.com/djcb/mu.git
server/find: handle maxnum correctly
If it's nil, use '-1' so we get unlimited results. Fixes #1592.
This commit is contained in:
parent
07e4a28deb
commit
0e75f84228
|
@ -721,7 +721,7 @@ find_handler (Context& context, const Parameters& params)
|
|||
const auto threads{get_bool_or(params, "threads", false)};
|
||||
const auto sortfieldstr{get_symbol_or(params, "sortfield")};
|
||||
const auto descending{get_bool_or(params, "descending", false)};
|
||||
const auto maxnum{get_int_or(params, "maxnum", 500)};
|
||||
const auto maxnum{get_int_or(params, "maxnum", -1/*unlimited*/)};
|
||||
const auto skip_dups{get_bool_or(params, "skip-dups", false)};
|
||||
const auto include_related{get_bool_or(params, "include-related", false)};
|
||||
|
||||
|
|
Loading…
Reference in New Issue