Commit 34d5c14b authored by 李小芳's avatar 李小芳

update dockfile

parent 388beb36
...@@ -9,7 +9,7 @@ from tags.services.tag import (get_tagv3_analysis_info, get_tagv3_ids_by_tagv3_n ...@@ -9,7 +9,7 @@ from tags.services.tag import (get_tagv3_analysis_info, get_tagv3_ids_by_tagv3_n
get_first_demand_ids_by_name, get_second_demand_ids_by_name, get_first_demand_ids_by_name, get_second_demand_ids_by_name,
get_first_position_ids_by_name, get_second_position_ids_by_name, get_first_position_ids_by_name, get_second_position_ids_by_name,
get_first_solution_ids_by_name, get_second_solution_ids_by_name) get_first_solution_ids_by_name, get_second_solution_ids_by_name)
from talos.services.tag import TagService
rpc = get_rpc_invoker() rpc = get_rpc_invoker()
...@@ -35,12 +35,14 @@ def get_articles(pks): ...@@ -35,12 +35,14 @@ def get_articles(pks):
if topic: if topic:
item['title'] = topic.title item['title'] = topic.title
item['content'] = topic.answer_richtext item['content'] = topic.answer_richtext
tags = topic.tags # tags = topic.tags
tags_id_list = [tag.id for tag in tags] tags = TagService.get_tags_info_by_ids(tag_ids=topic.tag_ids)
item['tag_ids'] = tags_id_list # tags_id_list = [tag.id for tag in tags]
item['tags'] = [tag.name 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=tags_id_list)
fresh_tag_result = rpc["api/agile_tag/tuple_new_tags"](old_tag_ids=topic.tag_ids)
fresh_tag_id_list = list() fresh_tag_id_list = list()
fresh_tag_name_list = list() fresh_tag_name_list = list()
for fresh_tag_id, fresh_tag_name in fresh_tag_result.unwrap(): 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