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
aefd29f9
Commit
aefd29f9
authored
Sep 10, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
97661730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
func_get_pv_card_id.py
utils/func_get_pv_card_id.py
+1
-1
portary_div_exposure.py
utils/portary_div_exposure.py
+2
-1
No files found.
utils/func_get_pv_card_id.py
View file @
aefd29f9
...
...
@@ -196,7 +196,7 @@ def get_card_id():
"qa"
:
[]
}
for
res
in
sql_res
:
print
(
res
)
#
print(res)
card_content_type
=
res
.
card_content_type
card_id
=
res
.
card_id
if
card_content_type
in
res_dict
:
...
...
utils/portary_div_exposure.py
View file @
aefd29f9
...
...
@@ -446,7 +446,7 @@ def from_id_get_tag(card_id_dict):
index
=
'gm-dbmw-tractate-read'
doc_type
=
'tractate'
for
card_id
in
card_id_dict
[
card_type
]:
res
=
es
.
get_source
(
index
,
card_id
,
doc_type
=
doc_type
)
res
=
es
.
get_source
(
index
,
doc_type
,
card_id
)
print
(
res
)
first_demands
=
res
.
get
(
"first_demands"
)
second_demands
=
res
.
get
(
"second_demands"
)
...
...
@@ -474,6 +474,7 @@ def parse_data():
article_num_dict
=
get_es_article_num
(
all_tags
)
# 获取曝光的id
card_id_dict
=
get_card_id
()
print
(
card_id_dict
)
# 获取曝光id对应的标签
word_count_exposure
=
from_id_get_tag
(
card_id_dict
)
...
...
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