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
06f53513
Commit
06f53513
authored
May 29, 2019
by
zhanglu
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/tags_name_repeat' into 'master'
前端传的tag名称有重复处理 See merge request
!54
parents
c996ed6f
6983ecef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
topic.py
api/views/topic.py
+1
-0
No files found.
api/views/topic.py
View file @
06f53513
...
...
@@ -197,6 +197,7 @@ class CreateTopicForBatchByOne(BaseView):
# check_info = Sensitive.check(tag_names)
# tags = [tag_name for tag_name, succ in check_info.items() if not succ]
# check_info = Sensitive.check(tag_names)
tag_names
=
list
(
set
([
item
.
strip
()
for
item
in
tag_names
]))
tags
=
[{
"name"
:
item
}
for
item
in
tag_names
]
# 先创建标签
...
...
zhanglu
@zhanglu
mentioned in commit
32f144c4
·
May 29, 2019
mentioned in commit
32f144c4
mentioned in commit 32f144c49ac13420798f0a2286501020c16fb677
Toggle commit list
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