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
c23a31e0
Commit
c23a31e0
authored
4 years ago
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'operator_tag' into 'master'
smr See merge request
!20
parents
3653b471
899f1d8e
master
14288tag
add_index
change_type
changetag
data_sync
del_showindex
hot_score
is_feed_show
mr/develop/tag
subtag
tabrpc
1 merge request
!57
Mr/develop/020100
Hide 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 @
c23a31e0
...
@@ -196,7 +196,7 @@ def get_answers(pks):
...
@@ -196,7 +196,7 @@ def get_answers(pks):
# 首页精选增加内容分类 明星列表和网红列表
# 首页精选增加内容分类 明星列表和网红列表
tagv4
=
answer
.
get_answer_tagv4_names
(
answer_id
=
answer
.
id
)
tagv4
=
answer
.
get_answer_tagv4_names
(
answer_id
=
answer
.
id
)
if
tagv4
:
if
tagv4
:
tags_info
=
answer
.
get_tag
(
tagv4
)
tags_info
=
answer
.
get_
answer_
tag
(
tagv4
)
item
[
'selected_stars'
]
=
[]
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
all_tags
=
[]
...
...
This diff is collapsed.
Click to expand it.
qa/models/answer.py
View file @
c23a31e0
...
@@ -1085,6 +1085,19 @@ class Answer(models.Model):
...
@@ -1085,6 +1085,19 @@ class Answer(models.Model):
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
1000
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
SendAnswer
(
models
.
Model
):
class
Meta
:
class
Meta
:
...
...
This diff is collapsed.
Click to expand it.
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