Commit 200aa0c7 authored by tssasha's avatar tssasha
Browse files

little fix

parent cb9d7eac
......@@ -18,7 +18,7 @@ def request(data):
response = requests.get(full_url)
time += response.elapsed.total_seconds()
time /= 10
result = json.loads(response.content)['suggest'][data['suggest.dictionary']][data['suggest.q']]['suggestions']
result = json.loads(response.content.decode('utf-8'))['suggest'][data['suggest.dictionary']][data['suggest.q']]['suggestions']
res_list = []
if len(result) == 0:
return False
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment