Commit b1ce8902 authored by 段英荣's avatar 段英荣

modify json bug

parent 961f2c16
...@@ -35,8 +35,10 @@ def auto_complete(q): ...@@ -35,8 +35,10 @@ def auto_complete(q):
'error': 0, 'error': 0,
'data': data, 'data': data,
} }
return json_http_response(result) return {"data":data}
#return json_http_response(result)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return json_http_response({'error': 1, 'data': []}) return {"data":[]}
#return json_http_response({'error': 1, 'data': []})
Markdown is supported
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