Commit 5817ae22 authored by 李小芳's avatar 李小芳

修改es

parent 702513b9
......@@ -144,7 +144,7 @@ def has_service(tag_list, content_keyword):
res = es_query_service(doc="service", body=q, offset=0, size=1)
if res:
if res['hits']['total'] > 0:
if res['hits']['total']['value'] > 0:
return True
else:
return False
......
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