Commit 23e5d61b authored by 段英荣's avatar 段英荣

modify

parent 6b9d6ab0
......@@ -14,7 +14,7 @@ from search.utils.auto_tips import get_suggest_tips
@bind("search_tips/search/auto_complete")
def auto_complete(request):
def auto_complete(q):
try:
"""auto complate words/tags/doctors etc.
......@@ -25,9 +25,9 @@ def auto_complete(request):
{'error': 0|1, 'data': [word, word, word],}
"""
q = request.GET.get('q', '').strip()
if not q:
return json_http_response({'error': 0, 'data': []})
# q = request.GET.get('q', '').strip()
# if not q:
# return json_http_response({'error': 0, 'data': []})
data = get_suggest_tips(q)
......
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