Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
宋柯
meta_base_code
Commits
9f83f7c2
Commit
9f83f7c2
authored
Sep 10, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
28d85ebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
portary_div_exposure.py
utils/portary_div_exposure.py
+7
-7
No files found.
utils/portary_div_exposure.py
View file @
9f83f7c2
...
@@ -448,13 +448,13 @@ def from_id_get_tag(card_id_dict):
...
@@ -448,13 +448,13 @@ def from_id_get_tag(card_id_dict):
for
card_id
in
card_id_dict
[
card_type
]:
for
card_id
in
card_id_dict
[
card_type
]:
res
=
es
.
get_source
(
index
,
doc_type
,
card_id
)
res
=
es
.
get_source
(
index
,
doc_type
,
card_id
)
print
(
res
)
print
(
res
)
first_demands
=
res
.
get
(
"first_demands"
)
if
res
.
get
(
"first_demands"
)
else
0
first_demands
=
res
.
get
(
"first_demands"
)
if
res
.
get
(
"first_demands"
)
else
[]
second_demands
=
res
.
get
(
"second_demands"
)
if
res
.
get
(
"second_demands"
)
else
0
second_demands
=
res
.
get
(
"second_demands"
)
if
res
.
get
(
"second_demands"
)
else
[]
first_solutions
=
res
.
get
(
"first_solutions"
)
if
res
.
get
(
"first_solutions"
)
else
0
first_solutions
=
res
.
get
(
"first_solutions"
)
if
res
.
get
(
"first_solutions"
)
else
[]
second_solutions
=
res
.
get
(
"second_solutions"
)
if
res
.
get
(
"second_solutions"
)
else
0
second_solutions
=
res
.
get
(
"second_solutions"
)
if
res
.
get
(
"second_solutions"
)
else
[]
first_positions
=
res
.
get
(
"first_positions"
)
if
res
.
get
(
"first_positions"
)
else
0
first_positions
=
res
.
get
(
"first_positions"
)
if
res
.
get
(
"first_positions"
)
else
[]
second_positions
=
res
.
get
(
"second_positions"
)
if
res
.
get
(
"second_positions"
)
else
0
second_positions
=
res
.
get
(
"second_positions"
)
if
res
.
get
(
"second_positions"
)
else
[]
projects
=
res
.
get
(
"projects"
)
if
res
.
get
(
"projects"
)
else
0
projects
=
res
.
get
(
"projects"
)
if
res
.
get
(
"projects"
)
else
[]
word_count_list
=
first_demands
+
second_demands
+
first_solutions
+
second_solutions
+
first_positions
+
second_positions
+
projects
word_count_list
=
first_demands
+
second_demands
+
first_solutions
+
second_solutions
+
first_positions
+
second_positions
+
projects
for
word
in
word_count_list
:
for
word
in
word_count_list
:
if
word
in
query_count
:
if
word
in
query_count
:
...
...
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