Commit 6983ecef authored by zhanglu's avatar zhanglu

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

parent c996ed6f
...@@ -197,6 +197,7 @@ class CreateTopicForBatchByOne(BaseView): ...@@ -197,6 +197,7 @@ class CreateTopicForBatchByOne(BaseView):
# 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]
# check_info = Sensitive.check(tag_names) # 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] 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