Commit 929831a5 authored by haowang's avatar haowang

fix batch create tags

parent 21fde0ad
......@@ -15,9 +15,9 @@ class CreateTagForBatch(BaseView):
tags = []
if need_check:
# 敏感词检测,获取可用的帖子
check_info = Sensitive.check([item["name"] for item in tag_list if item.get("name")])
check_info = Sensitive.check([item for item in tag_list if item])
for tag in tag_list:
succ = check_info.get(tag.get("name")) if tag.get("name") else True
succ = check_info.get(tag) if tag else True
if not succ:
tags.append(tag)
else:
......
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