mirror of
https://github.com/searxng/searxng.git
synced 2024-11-29 22:21:02 +00:00
[fix] arxiv engine
This commit is contained in:
parent
91a59ff350
commit
9ff5001816
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue