mirror of https://github.com/searxng/searxng.git
[fix] fix paging for the oscar theme after PR #1640
This commit is contained in:
parent
72029d27de
commit
ba80a0ba38
|
@ -279,10 +279,13 @@ def get_search_query_from_webapp(preferences, form):
|
||||||
query_timeout = raw_text_query.timeout_limit
|
query_timeout = raw_text_query.timeout_limit
|
||||||
if query_timeout is None and 'timeout_limit' in form:
|
if query_timeout is None and 'timeout_limit' in form:
|
||||||
raw_time_limit = form.get('timeout_limit')
|
raw_time_limit = form.get('timeout_limit')
|
||||||
try:
|
if raw_time_limit in ['None', '']:
|
||||||
query_timeout = float(raw_time_limit)
|
raw_time_limit = None
|
||||||
except ValueError:
|
else:
|
||||||
raise SearxParameterException('timeout_limit', raw_time_limit)
|
try:
|
||||||
|
query_timeout = float(raw_time_limit)
|
||||||
|
except ValueError:
|
||||||
|
raise SearxParameterException('timeout_limit', raw_time_limit)
|
||||||
|
|
||||||
# query_categories
|
# query_categories
|
||||||
query_categories = []
|
query_categories = []
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<input type="hidden" name="pageno" value="{{ pageno }}" />
|
<input type="hidden" name="pageno" value="{{ pageno }}" />
|
||||||
<input type="hidden" name="time_range" value="{{ time_range }}" />
|
<input type="hidden" name="time_range" value="{{ time_range }}" />
|
||||||
<input type="hidden" name="language" value="{{ current_language }}" />
|
<input type="hidden" name="language" value="{{ current_language }}" />
|
||||||
<input type="hidden" name="timeout_limit" value="{{ timeout_limit }}" />
|
{% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" />{% endif %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
{%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%}
|
{%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue