Commit be3010ef authored by 李小芳's avatar 李小芳

修改标签

parent 8496709e
......@@ -35,14 +35,11 @@ def get_articles(pks):
if topic:
item['title'] = topic.title
item['content'] = topic.answer_richtext
# tags = topic.tags
tags = TagService.get_tags_info_by_ids(tag_ids=topic.tag_ids)
# tags_id_list = [tag.id for tag in tags]
item['tag_ids'] = topic.tag_ids
item['tags'] = [tag.get("tag_name") for tag in tags]
# 新标签
# fresh_tag_result = rpc["api/agile_tag/tuple_new_tags"](old_tag_ids=tags_id_list)
fresh_tag_result = rpc["api/agile_tag/tuple_new_tags"](old_tag_ids=topic.tag_ids)
tags = topic.tags
tags_id_list = [tag.id for tag in tags]
item['tag_ids'] = tags_id_list
item['tags'] = [tag.name for tag in tags]
fresh_tag_result = rpc["api/agile_tag/tuple_new_tags"](old_tag_ids=tags_id_list)
fresh_tag_id_list = list()
fresh_tag_name_list = list()
for fresh_tag_id, fresh_tag_name in fresh_tag_result.unwrap():
......
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