Commit a18465bd authored by haowang's avatar haowang

fix code

parent 1ff1946b
......@@ -128,7 +128,7 @@ class CreateTopicForBatch(BaseView):
if tag_name in tags:
alpha_tag = '<topic>{' + '"id":{},"name":"{}"'.format(tag_id, tag_name) + '}</topic>'
content = content.replace('#' + tag_name, alpha_tag)
item.get("content") = content.replace('#', '')
item["content"] = content.replace('#', '')
item["tag_ids"] = [
_tag_data[tag_name]
......
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