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
0
Merge Requests
0
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
赵磊
saturn
Commits
c563650e
Commit
c563650e
authored
Jan 21, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix batch creat topic is_online See merge request
alpha/saturn!14
parents
edd72e77
83c603c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
topic.py
api/views/topic.py
+2
-0
No files found.
api/views/topic.py
View file @
c563650e
...
@@ -15,6 +15,7 @@ class CreateTopicForBatch(BaseView):
...
@@ -15,6 +15,7 @@ class CreateTopicForBatch(BaseView):
user_id
=
request
.
POST
.
get
(
"user_id"
,
0
)
user_id
=
request
.
POST
.
get
(
"user_id"
,
0
)
card_level
=
request
.
POST
.
get
(
"card_level"
)
card_level
=
request
.
POST
.
get
(
"card_level"
)
tag_id
=
request
.
POST
.
get
(
"tag_id"
)
tag_id
=
request
.
POST
.
get
(
"tag_id"
)
is_online
=
request
.
POST
.
get
(
"is_online"
,
0
)
topic_list
=
json
.
loads
(
request
.
POST
.
get
(
"topic_list"
,
'[]'
))
topic_list
=
json
.
loads
(
request
.
POST
.
get
(
"topic_list"
,
'[]'
))
if
not
user_id
:
if
not
user_id
:
...
@@ -49,6 +50,7 @@ class CreateTopicForBatch(BaseView):
...
@@ -49,6 +50,7 @@ class CreateTopicForBatch(BaseView):
item
[
"user_id"
]
=
user_id
item
[
"user_id"
]
=
user_id
item
[
"card_level"
]
=
card_level
item
[
"card_level"
]
=
card_level
item
[
"tag_id"
]
=
tag_id
item
[
"tag_id"
]
=
tag_id
item
[
"is_online"
]
=
is_online
check_info
=
Sensitive
.
check
(
tag_names
)
check_info
=
Sensitive
.
check
(
tag_names
)
tags
=
[
tag_name
for
tag_name
,
succ
in
check_info
.
items
()
if
not
succ
]
tags
=
[
tag_name
for
tag_name
,
succ
in
check_info
.
items
()
if
not
succ
]
...
...
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