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
899f1d8e
Commit
899f1d8e
authored
Jan 12, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smr
parent
cc85a7f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
transfer.py
data_sync/answer/transfer.py
+1
-1
answer.py
qa/models/answer.py
+13
-0
No files found.
data_sync/answer/transfer.py
View file @
899f1d8e
...
...
@@ -196,7 +196,7 @@ def get_answers(pks):
# 首页精选增加内容分类 明星列表和网红列表
tagv4
=
answer
.
get_answer_tagv4_names
(
answer_id
=
answer
.
id
)
if
tagv4
:
tags_info
=
answer
.
get_tag
(
tagv4
)
tags_info
=
answer
.
get_
answer_
tag
(
tagv4
)
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
...
...
qa/models/answer.py
View file @
899f1d8e
...
...
@@ -1085,6 +1085,19 @@ class Answer(models.Model):
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
1000
def
get_answer_tag
(
self
,
tag_list
):
try
:
association_tags_id_list
=
list
()
tag_list
=
TagService
.
_get_by_ids_from_cache_type
(
tag_list
)
for
item
in
tag_list
:
association_tags_id_list
.
append
(
{
"id"
:
item
.
id
,
"tag_name"
:
item
.
name
,
"recommend_type"
:
item
.
recommend_type
,
"tag_type"
:
item
.
tag_type
})
return
association_tags_id_list
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
[]
class
SendAnswer
(
models
.
Model
):
class
Meta
:
...
...
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