Change largest limit option to 200.

Accidentally commited the number 250 on search.html earlier. Oops.
Anyway I was finding 100 too limiting sometimes.
I will think about making this configurable eventually.
This commit is contained in:
voussoir 2018-11-04 18:38:32 -08:00
parent dcfa7a862d
commit e7d3a652a7
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -262,7 +262,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, 250] %} {% set limit_options = [20, 50, 100, 200] %}
{% 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() %}