Commit 750d70cb authored by 李小芳's avatar 李小芳

gmai

parent 6bbc9d67
...@@ -197,6 +197,8 @@ def get_answers(pks): ...@@ -197,6 +197,8 @@ def get_answers(pks):
item['selected_content_type'] = int(result_data.get("content_type", 0)) item['selected_content_type'] = int(result_data.get("content_type", 0))
item['selected_internet_celebrity'] = [list(item.keys())[0] for item in result_data.get("celebrity", [])] item['selected_internet_celebrity'] = [list(item.keys())[0] for item in result_data.get("celebrity", [])]
item['selected_stars'] = [list(item.keys())[0] for item in result_data.get("star", [])] item['selected_stars'] = [list(item.keys())[0] for item in result_data.get("star", [])]
projects = [list(item.keys())[0] for item in result_data.get("projects", [])]
item['portrait_tag_name'].extend(projects)
data.append(item) data.append(item)
......
...@@ -236,6 +236,8 @@ def get_tractate(pks): ...@@ -236,6 +236,8 @@ def get_tractate(pks):
item['selected_content_type'] = int(result_data.get("content_type", 0)) item['selected_content_type'] = int(result_data.get("content_type", 0))
item['selected_internet_celebrity'] = [list(item.keys())[0] for item in result_data.get("celebrity", [])] item['selected_internet_celebrity'] = [list(item.keys())[0] for item in result_data.get("celebrity", [])]
item['selected_stars'] = [list(item.keys())[0] for item in result_data.get("star", [])] item['selected_stars'] = [list(item.keys())[0] for item in result_data.get("star", [])]
projects = [list(item.keys())[0] for item in result_data.get("projects", [])]
item['portrait_tag_name'].extend(projects)
data.append(item) data.append(item)
logging.info("get data:%s" % data) logging.info("get data:%s" % data)
......
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