Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
0
Merge Requests
0
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
alpha
cybertron
Commits
3d7b4e33
Commit
3d7b4e33
authored
Jul 16, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1f2aed04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pictorial.py
index_contrast/pictorial.py
+6
-4
No files found.
index_contrast/pictorial.py
View file @
3d7b4e33
...
...
@@ -286,6 +286,7 @@ class ESPerform(object):
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
True
# 先获取一部分数据
es_cli_obj
=
ESPerform
.
get_cli
()
...
...
@@ -309,9 +310,11 @@ for old_item in result_dict["hits"]:
es_cli_obj
=
ESPerform
.
get_cli
()
q
=
{}
q
[
"query"
]
=
{
"term"
:
{
"id"
:
old_id
,
"is_online"
:
True
"bool"
:
{
"must"
:
[
{
"term"
:
{
"id"
:
old_id
}},
{
"term"
:
{
"is_online"
:
True
}}
]
}
}
result_dict_test
=
ESPerform
.
get_search_results
(
es_cli_obj
,
"mv-alpha-pictorial-test-190711901"
,
q
,
0
,
1
)
...
...
@@ -419,4 +422,3 @@ for old_item in result_dict["hits"]:
print
(
old_source
[
"activity_join"
])
print
(
new_source
[
"activity_join"
])
print
(
"-----activity_join-----"
)
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