Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
d24e7948
Unverified
Commit
d24e7948
authored
Aug 02, 2019
by
Alexandre Flament
Committed by
GitHub
Aug 02, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1665 from dalf/fix-paging
[fix] fix paging for the oscar theme after PR #1640 Close #1664
parents
72029d27
ba80a0ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
search.py
searx/search.py
+7
-4
results.html
searx/templates/oscar/results.html
+1
-1
No files found.
searx/search.py
View file @
d24e7948
...
...
@@ -279,10 +279,13 @@ def get_search_query_from_webapp(preferences, form):
query_timeout
=
raw_text_query
.
timeout_limit
if
query_timeout
is
None
and
'timeout_limit'
in
form
:
raw_time_limit
=
form
.
get
(
'timeout_limit'
)
try
:
query_timeout
=
float
(
raw_time_limit
)
except
ValueError
:
raise
SearxParameterException
(
'timeout_limit'
,
raw_time_limit
)
if
raw_time_limit
in
[
'None'
,
''
]:
raw_time_limit
=
None
else
:
try
:
query_timeout
=
float
(
raw_time_limit
)
except
ValueError
:
raise
SearxParameterException
(
'timeout_limit'
,
raw_time_limit
)
# query_categories
query_categories
=
[]
...
...
searx/templates/oscar/results.html
View file @
d24e7948
...
...
@@ -5,7 +5,7 @@
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno }}"
/>
<input
type=
"hidden"
name=
"time_range"
value=
"{{ time_range }}"
/>
<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 %}
{%- 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 -%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment