Commit e065e29f authored by 李小芳's avatar 李小芳

Merge branch 'add_hauxiang' into 'master'

修改es

See merge request !9
parents 192e3e6b 5817ae22
......@@ -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