Commit 6ad04c42 authored by 李小芳's avatar 李小芳

grey

parent 61225f96
......@@ -225,6 +225,7 @@ def get_answers(pks):
else:
item['selected_content_type'] = -1
else:
try:
result_data = alo_model.run(answer.content)
item['selected_content_type'] = int(result_data.get("content_type", 0))
item['selected_internet_celebrity'] = [list(item.keys())[0] for item in
......@@ -232,6 +233,8 @@ def get_answers(pks):
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)
except:
pass
if 3315 in item['operators_add_tags']:
item['new_smr'] = answer.get_answer_newuser_smr(answer_id=answer.id)
......
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