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
39e80469
Commit
39e80469
authored
Jan 28, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'del_showindex' into 'master'
get_highlight_v2 See merge request
!55
parents
7bee6d06
03220674
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 @
39e80469
...
...
@@ -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