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
58a63030
Commit
58a63030
authored
Mar 12, 2020
by
Adam Tauber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] convert query to string to produce valid filename for csv output
parent
018b6818
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
webapp.py
searx/webapp.py
+1
-1
No files found.
searx/webapp.py
View file @
58a63030
...
...
@@ -643,7 +643,7 @@ def index():
csv
.
writerow
([
row
.
get
(
key
,
''
)
for
key
in
keys
])
csv
.
stream
.
seek
(
0
)
response
=
Response
(
csv
.
stream
.
read
(),
mimetype
=
'application/csv'
)
cont_disp
=
'attachment;Filename=searx_-_{0}.csv'
.
format
(
search_query
.
query
)
cont_disp
=
'attachment;Filename=searx_-_{0}.csv'
.
format
(
search_query
.
query
.
decode
(
'utf-8'
)
)
response
.
headers
.
add
(
'Content-Disposition'
,
cont_disp
)
return
response
elif
output_format
==
'rss'
:
...
...
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