Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
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
rank
graces_es6
Commits
70b87ee2
Commit
70b87ee2
authored
Nov 03, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新es的配置
parent
30b193b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
diary_transfer.py
trans2es/utils/diary_transfer.py
+15
-3
No files found.
trans2es/utils/diary_transfer.py
View file @
70b87ee2
...
@@ -584,9 +584,21 @@ def get_diary(instance):
...
@@ -584,9 +584,21 @@ def get_diary(instance):
res
[
'anecdote_tag_ids'
]
=
get_tag_v3_anecdote_tag_ids
(
content_id
=
d
.
id
)
res
[
'anecdote_tag_ids'
]
=
get_tag_v3_anecdote_tag_ids
(
content_id
=
d
.
id
)
res
[
'greatest_hits'
]
=
d
.
get_greatest_hits
(
is_headline
=
d
.
is_headline
,
closure_tag_ids
=
res
[
'closure_tag_ids'
])
res
[
'greatest_hits'
]
=
d
.
get_greatest_hits
(
is_headline
=
d
.
is_headline
,
closure_tag_ids
=
res
[
'closure_tag_ids'
])
res
[
'tag_id_popular'
]
=
1
if
1202
in
res
[
'closure_tag_ids'
]
else
0
res
[
'tag_id_popular'
]
=
1
if
1202
in
res
[
'closure_tag_ids'
]
else
0
res
[
'index_limit_score'
]
=
d
.
get_script_diary_index_2
(
res
[
'index_limit_start_time'
],
res
[
'index_limit_end_time'
],
index_limit_start_time
=
res
.
get
(
"index_limit_start_time"
,
None
)
res
[
'index_limit_weight2'
])
index_limit_end_time
=
res
.
get
(
"index_limit_start_time"
,
None
)
res
[
'merchant_sink'
]
=
d
.
get_merchant_sink
(
res
[
'merchant_sink_start_time'
],
res
[
'merchant_sink_end_time'
])
index_limit_weight2
=
res
.
get
(
"index_limit_weight2"
,
None
)
if
index_limit_start_time
and
index_limit_end_time
:
res
[
'index_limit_score'
]
=
d
.
get_script_diary_index_2
(
index_limit_start_time
,
index_limit_end_time
,
index_limit_weight2
)
else
:
res
[
'index_limit_score'
]
=
1
merchant_sink_start_time
=
res
.
get
(
"merchant_sink_start_time"
,
None
)
merchant_sink_end_time
=
res
.
get
(
"merchant_sink_end_time"
,
None
)
if
merchant_sink_start_time
and
merchant_sink_end_time
:
res
[
'merchant_sink'
]
=
d
.
get_merchant_sink
(
merchant_sink_start_time
,
merchant_sink_end_time
)
else
:
res
[
'merchant_sink'
]
=
1
res
[
'diary_you_may_like'
]
=
d
.
get_diary_you_may_like
(
is_headline
=
d
.
is_headline
,
res
[
'diary_you_may_like'
]
=
d
.
get_diary_you_may_like
(
is_headline
=
d
.
is_headline
,
closure_tag_ids
=
res
[
'closure_tag_ids'
])
closure_tag_ids
=
res
[
'closure_tag_ids'
])
# 日记&评论质量log(a*1+b*64+c*10+d*13+e*8+f*4)
# 日记&评论质量log(a*1+b*64+c*10+d*13+e*8+f*4)
...
...
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