Commit 06f53513 authored by zhanglu's avatar zhanglu

Merge branch 'hotfix/tags_name_repeat' into 'master'

前端传的tag名称有重复处理

See merge request alpha/saturn!54
parents c996ed6f 6983ecef
......@@ -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]
# 先创建标签
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment