Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
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
alpha
saturn
Commits
70001311
Commit
70001311
authored
Jul 01, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/hotfix' into 'test'
add check sensitive in topic crawl from app See merge request
!70
parents
0a5effb7
539ed5f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
topic.py
api/views/topic.py
+8
-1
No files found.
api/views/topic.py
View file @
70001311
...
@@ -123,6 +123,8 @@ class CreateTopicForBatch(BaseView):
...
@@ -123,6 +123,8 @@ class CreateTopicForBatch(BaseView):
topic_list
=
json
.
loads
(
request
.
POST
.
get
(
"topic_list"
,
'[]'
))
topic_list
=
json
.
loads
(
request
.
POST
.
get
(
"topic_list"
,
'[]'
))
pictorial_tag_ids
=
json
.
loads
(
request
.
POST
.
get
(
"tag_ids"
,
'[]'
))
pictorial_tag_ids
=
json
.
loads
(
request
.
POST
.
get
(
"tag_ids"
,
'[]'
))
is_app
=
request
.
POST
.
get
(
'is_app'
,
None
)
info_logger
.
info
({
info_logger
.
info
({
'user_id'
:
user_id
,
'user_id'
:
user_id
,
'card_level'
:
card_level
,
'card_level'
:
card_level
,
...
@@ -144,7 +146,12 @@ class CreateTopicForBatch(BaseView):
...
@@ -144,7 +146,12 @@ class CreateTopicForBatch(BaseView):
return
self
.
ok
()
return
self
.
ok
()
# 敏感词检测,获取可用的帖子
# 敏感词检测,获取可用的帖子
# checked_topics = self.check_sensitive_content(topic_list)
if
is_app
:
if
int
(
is_app
)
==
1
:
checked_topics
=
self
.
check_sensitive_content
(
topic_list
)
else
:
checked_topics
=
topic_list
else
:
checked_topics
=
topic_list
checked_topics
=
topic_list
topics
=
[]
topics
=
[]
...
...
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