Increase search limit to 1,000.

This commit is contained in:
voussoir 2020-09-24 14:28:38 -07:00
parent 343ce508bf
commit f5d8898e14
2 changed files with 2 additions and 2 deletions

View file

@ -335,7 +335,7 @@ def get_search_core():
if limit is None: if limit is None:
limit = 50 limit = 50
else: else:
limit = min(limit, 200) limit = min(limit, 1000)
offset = request.args.get('offset') offset = request.args.get('offset')

View file

@ -273,7 +273,7 @@
name="author" placeholder="Author"> name="author" placeholder="Author">
<select name="limit" class="basic_param"> <select name="limit" class="basic_param">
{% set limit_options = [20, 50, 100, 200] %} {% set limit_options = [20, 50, 100, 200, 500, 1000] %}
{% if search_kwargs['limit'] not in limit_options %} {% if search_kwargs['limit'] not in limit_options %}
{% do limit_options.append(search_kwargs['limit']) %} {% do limit_options.append(search_kwargs['limit']) %}
{% do limit_options.sort() %} {% do limit_options.sort() %}