Commit c996ed6f authored by 王浩's avatar 王浩

Merge branch 'haow/batch_create_topic' into 'master'

fix code

See merge request alpha/saturn!52
parents 1ff1946b 8b4b6f3b
......@@ -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]
......@@ -217,7 +217,7 @@ class CreateTopicForBatchByOne(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