Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mentha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
mentha
Commits
e065e29f
Commit
e065e29f
authored
Nov 19, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'add_hauxiang' into 'master'
修改es See merge request
!9
parents
192e3e6b
5817ae22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
toutiao.py
qa/models/toutiao.py
+1
-1
No files found.
qa/models/toutiao.py
View file @
e065e29f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment