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
03220674
Commit
03220674
authored
Jan 28, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_highlight_v2
parent
eea54634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
transfer.py
data_sync/answer/transfer.py
+2
-3
No files found.
data_sync/answer/transfer.py
View file @
03220674
...
...
@@ -41,8 +41,6 @@ def get_answers(pks):
item
[
'doctor_id'
]
=
DoctorService
.
get_doctor_by_user_id_v1
(
answer
.
user_id
)
item
[
'question_id'
]
=
answer
.
question
.
id
item
[
'smart_rank'
]
=
answer
.
smart_rank
()
item
[
'smart_rank_v2'
]
=
answer
.
smart_rank_v2
()
item
[
'smart_rank_v3'
]
=
answer
.
smart_rank_v3
()
item
[
'title'
]
=
answer
.
question
.
title
item
[
'desc'
]
=
answer
.
question
.
content
item
[
'question_type'
]
=
answer
.
question
.
question_type
...
...
@@ -67,7 +65,8 @@ def get_answers(pks):
# community_score = answer.get_community_answer_smr_score(answer.id)
community_hot_score
=
answer
.
get_community_answer_hot_score
(
answer
.
id
)
item
[
'new_goodclicks'
]
=
community_hot_score
.
get
(
'hot_score'
,
0
)
item
[
'smart_rank_v2'
]
=
answer
.
get_new_smart_rank_score
(
answer_id
=
answer
.
id
)
item
[
'smart_rank_v3'
]
=
answer
.
get_new_smart_rank_score
(
answer_id
=
answer
.
id
)
item
[
'platform'
]
=
answer
.
platform
# 新标签
...
...
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