1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[fix] arxiv engine

This commit is contained in:
Dalf 2019-08-05 15:43:01 +02:00
parent 91a59ff350
commit 9ff5001816
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def request(query, params):
# basic search
offset = (params['pageno'] - 1) * number_of_results
string_args = dict(query=query,
string_args = dict(query=query.decode('utf-8'),
offset=offset,
number_of_results=number_of_results)

View File

@ -8,7 +8,7 @@ from searx.testing import SearxTestCase
class TestBaseEngine(SearxTestCase):
def test_request(self):
query = 'test_query'
query = 'test_query'.encode('utf-8')
dicto = defaultdict(dict)
dicto['pageno'] = 1
params = arxiv.request(query, dicto)