Commit 81a62ff9 authored by 李小芳's avatar 李小芳

get_highlight_v2

parent 39e80469
...@@ -239,29 +239,29 @@ def get_answers(pks): ...@@ -239,29 +239,29 @@ def get_answers(pks):
if 3315 in item['operators_add_tags']: if 3315 in item['operators_add_tags']:
item['new_smr'] = answer.get_answer_newuser_smr(answer_id=answer.id) item['new_smr'] = answer.get_answer_newuser_smr(answer_id=answer.id)
# answer_all_tag_names = list() answer_all_tag_names = list()
# filter_tags_names = ["假体隆胸", "自体脂肪隆胸", "胶原蛋白填充隆胸", "玻尿酸填充隆胸", "胸部假体取出", filter_tags_names = ["假体隆胸", "自体脂肪隆胸", "胶原蛋白填充隆胸", "玻尿酸填充隆胸", "胸部假体取出",
# "胸部失败修复", "胸部下垂矫正", "胸部修复", "胸形美化", "丰胸(隆胸)", "胸部塑身", "玻尿酸隆胸", "假体隆胸", "胶原蛋白隆胸", "胸部失败修复", "胸部下垂矫正", "胸部修复", "胸形美化", "丰胸(隆胸)", "胸部塑身", "玻尿酸隆胸", "假体隆胸", "胶原蛋白隆胸",
# "埋线隆胸", "自体脂肪隆胸", "胸部注射物取出", "胸部假体取出", "胸部假体取出", "胸部修复", "脂肪胶隆胸", "胸部整形", "隆胸", "胸部美化", "埋线隆胸", "自体脂肪隆胸", "胸部注射物取出", "胸部假体取出", "胸部假体取出", "胸部修复", "脂肪胶隆胸", "胸部整形", "隆胸", "胸部美化",
# "缩胸", "胸部提升", "生胸毛", "胸部护理", "综合隆胸", "植胸毛", "胸部修复", "隆胸修复", "胸部护理", "硅胶隆胸", "胸部护理", "缩胸", "胸部提升", "生胸毛", "胸部护理", "综合隆胸", "植胸毛", "胸部修复", "隆胸修复", "胸部护理", "硅胶隆胸", "胸部护理",
# "胸部修复", "胸部手术", "胸部提升", "生胸毛", "美胸", "胸毛", "胸部", "胸形", "胸部假体", "胸部kyc", "自体脂肪丰胸", "胸部修复", "胸部手术", "胸部提升", "生胸毛", "美胸", "胸毛", "胸部", "胸形", "胸部假体", "胸部kyc", "自体脂肪丰胸",
# "泰国隆胸", "泰国假体隆胸", "脂肪丰胸", "复合式隆胸", "隆胸假体", "丰胸(隆胸)", "美胸养成", "在线面诊 美胸名医", "为男友隆胸", "泰国隆胸", "泰国假体隆胸", "脂肪丰胸", "复合式隆胸", "隆胸假体", "丰胸(隆胸)", "美胸养成", "在线面诊 美胸名医", "为男友隆胸",
# "手术隆胸", "美胸创造营", "隆胸手术", "隆胸丰胸", "胸部下垂", '手术隆胸', "隆胸丰胸", "假体隆胸 成都罗通贵", "丰胸隆胸", "美胸套餐", "手术隆胸", "美胸创造营", "隆胸手术", "隆胸丰胸", "胸部下垂", '手术隆胸', "隆胸丰胸", "假体隆胸 成都罗通贵", "丰胸隆胸", "美胸套餐",
# "美胸护理", "自体脂肪填充胸部", "自体隆胸","处女膜修复","手术祛副乳","吸脂祛副乳","阴茎延长","包皮手术","阴茎增大","阴道成形","自体脂肪填充阴唇","女性私密检查","阴唇漂红","G点注射","激光脱私处毛发","乳头缩小","手术紧缩阴道","激光紧缩阴道","私密整形","私密脱毛","私密清洁","阴唇美化","阴道美化","阴蒂美化","处女膜修复","处女膜","女性高潮","阴茎美化","女性私密","私密护理","自体脂肪私密紧致","盆底修复","植私密毛发","阴道紧缩","私密清洁","阴道修复","阴唇整形","阴蒂整形","私密紧致","私密修复","玻尿酸丰阴唇","胶原蛋白丰阴唇","私密kyc","阴道松弛","阴蒂","阴道","处女膜","私密美化","阴蒂美化","阴茎美化","阴道成形","私密紧致","漂红","私密手术","男性私密","女性私密","脱私密毛发","缩阴道激光","生私密毛发","私密健康","阴道修复","生殖系统","女性私处","男性私处","阴茎","阴唇","处女膜","私密部位","胸形","乳晕","乳头","乳腺","副乳","私密护理","悦升私密紧收线","私密整形","私密其他","处女膜修复","阴道紧缩","阴道成形","包皮手术","填充阴唇","阴蒂肥大整形","阴唇整形","私密其他项目","阴蒂提升","小阴唇整形","阴茎延长","阴茎增粗","女性私密","男性私密","切开缝合法缩紧阴道","激光紧缩阴道","女性私密保养品","女性私密处保养","D女郎缩阴产品","私密整形1","私处整形","激光脱比基尼部位","私密回春术","缩阴术","激光脱比基尼","缩阴","私处护理","私处紧致","私密超声提升.","阴蒂整形","激光阴道紧缩术"] "美胸护理", "自体脂肪填充胸部", "自体隆胸","处女膜修复","手术祛副乳","吸脂祛副乳","阴茎延长","包皮手术","阴茎增大","阴道成形","自体脂肪填充阴唇","女性私密检查","阴唇漂红","G点注射","激光脱私处毛发","乳头缩小","手术紧缩阴道","激光紧缩阴道","私密整形","私密脱毛","私密清洁","阴唇美化","阴道美化","阴蒂美化","处女膜修复","处女膜","女性高潮","阴茎美化","女性私密","私密护理","自体脂肪私密紧致","盆底修复","植私密毛发","阴道紧缩","私密清洁","阴道修复","阴唇整形","阴蒂整形","私密紧致","私密修复","玻尿酸丰阴唇","胶原蛋白丰阴唇","私密kyc","阴道松弛","阴蒂","阴道","处女膜","私密美化","阴蒂美化","阴茎美化","阴道成形","私密紧致","漂红","私密手术","男性私密","女性私密","脱私密毛发","缩阴道激光","生私密毛发","私密健康","阴道修复","生殖系统","女性私处","男性私处","阴茎","阴唇","处女膜","私密部位","胸形","乳晕","乳头","乳腺","副乳","私密护理","悦升私密紧收线","私密整形","私密其他","处女膜修复","阴道紧缩","阴道成形","包皮手术","填充阴唇","阴蒂肥大整形","阴唇整形","私密其他项目","阴蒂提升","小阴唇整形","阴茎延长","阴茎增粗","女性私密","男性私密","切开缝合法缩紧阴道","激光紧缩阴道","女性私密保养品","女性私密处保养","D女郎缩阴产品","私密整形1","私处整形","激光脱比基尼部位","私密回春术","缩阴术","激光脱比基尼","缩阴","私处护理","私处紧致","私密超声提升.","阴蒂整形","激光阴道紧缩术"]
# operators_add_tags_names = list() operators_add_tags_names = list()
# operators_add_tags_names = get_tag_v3_names_by_tag_v3_ids(item['operators_add_tags']) operators_add_tags_names = get_tag_v3_names_by_tag_v3_ids(item['operators_add_tags'])
# answer_all_tag_names.extend(item["tags_v3"] + item["first_demands"] + item["second_demands"] + item[ answer_all_tag_names.extend(item["tags_v3"] + item["first_demands"] + item["second_demands"] + item[
# "first_solutions"] + item["second_solutions"] + item["positions"] + item["second_positions"] + item[ "first_solutions"] + item["second_solutions"] + item["positions"] + item["second_positions"] + item[
# 'tag_name'] + item['fresh_tag_name'] + item["operators_add_tags"] + item[ 'tag_name'] + item['fresh_tag_name'] + item["operators_add_tags"] + item[
# "anecdote_tags"] + item["portrait_tag_name"] + item['gossip_tags'] + item[ "anecdote_tags"] + item["portrait_tag_name"] + item['gossip_tags'] + item[
# 'second_classify_names'] + item[ 'second_classify_names'] + item[
# 'first_classify_names'] + operators_add_tags_names) 'first_classify_names'] + operators_add_tags_names)
#
# tags_inter = [item for item in list(set(answer_all_tag_names)) if item in list(set(filter_tags_names))] tags_inter = [item for item in list(set(answer_all_tag_names)) if item in list(set(filter_tags_names))]
# if tags_inter: if tags_inter:
# item['show_by_index'] = 2 # 2 标签中含有过滤列表中的标签 item['show_by_index'] = 2 # 2 标签中含有过滤列表中的标签
# else: else:
item['show_by_index'] = answer.get_answer_show_by_index(answer.id) item['show_by_index'] = answer.get_answer_show_by_index(answer.id)
data.append(item) data.append(item)
logging.info("get data:%s" % data) logging.info("get data:%s" % data)
......
...@@ -203,9 +203,7 @@ def get_tractate(pks): ...@@ -203,9 +203,7 @@ def get_tractate(pks):
# item["is_need_guarantee"] = False # item["is_need_guarantee"] = False
# 过滤标签 # 过滤标签
filter_tags_names = ["斩男心机妆", "今日look打卡", "少女心未泯", "颜值高光时刻", "美妆", "Get漫画迷人眼", "最显白口红推荐", "口红试色", "穿搭技巧", filter_tags_names = ["斩男心机妆", "今日look打卡", "少女心未泯", "颜值高光时刻", "美妆", "Get漫画迷人眼", "最显白口红推荐", "口红试色", "穿搭技巧",
"眼妆教程", "腮红", "氧气笑容练成记", "口红试色"] "眼妆教程", "腮红", "氧气笑容练成记", "口红试色","假体隆胸", "自体脂肪隆胸", "胶原蛋白填充隆胸", "玻尿酸填充隆胸", "胸部假体取出",
"""
"假体隆胸", "自体脂肪隆胸", "胶原蛋白填充隆胸", "玻尿酸填充隆胸", "胸部假体取出",
"胸部失败修复", "胸部下垂矫正", "胸部修复", "胸形美化", "丰胸(隆胸)", "胸部塑身", "玻尿酸隆胸", "假体隆胸", "胶原蛋白隆胸", "胸部失败修复", "胸部下垂矫正", "胸部修复", "胸形美化", "丰胸(隆胸)", "胸部塑身", "玻尿酸隆胸", "假体隆胸", "胶原蛋白隆胸",
"埋线隆胸", "自体脂肪隆胸", "胸部注射物取出", "胸部假体取出", "胸部假体取出", "胸部修复", "脂肪胶隆胸", "胸部整形", "隆胸", "胸部美化", "埋线隆胸", "自体脂肪隆胸", "胸部注射物取出", "胸部假体取出", "胸部假体取出", "胸部修复", "脂肪胶隆胸", "胸部整形", "隆胸", "胸部美化",
"缩胸", "胸部提升", "生胸毛", "胸部护理", "综合隆胸", "植胸毛", "胸部修复", "隆胸修复", "胸部护理", "硅胶隆胸", "胸部护理", "缩胸", "胸部提升", "生胸毛", "胸部护理", "综合隆胸", "植胸毛", "胸部修复", "隆胸修复", "胸部护理", "硅胶隆胸", "胸部护理",
...@@ -221,8 +219,8 @@ def get_tractate(pks): ...@@ -221,8 +219,8 @@ def get_tractate(pks):
"阴道紧缩", "阴道成形", "包皮手术", "填充阴唇", "阴蒂肥大整形", "阴唇整形", "私密其他项目", "阴蒂提升", "小阴唇整形", "阴茎延长", "阴道紧缩", "阴道成形", "包皮手术", "填充阴唇", "阴蒂肥大整形", "阴唇整形", "私密其他项目", "阴蒂提升", "小阴唇整形", "阴茎延长",
"阴茎增粗", "女性私密", "男性私密", "切开缝合法缩紧阴道", "激光紧缩阴道", "女性私密保养品", "女性私密处保养", "D女郎缩阴产品", "阴茎增粗", "女性私密", "男性私密", "切开缝合法缩紧阴道", "激光紧缩阴道", "女性私密保养品", "女性私密处保养", "D女郎缩阴产品",
"私密整形1", "私处整形", "激光脱比基尼部位", "私密回春术", "缩阴术", "激光脱比基尼", "缩阴", "私处护理", "私处紧致", "私密超声提升.", "私密整形1", "私处整形", "激光脱比基尼部位", "私密回春术", "缩阴术", "激光脱比基尼", "缩阴", "私处护理", "私处紧致", "私密超声提升.",
"阴蒂整形", "激光阴道紧缩术" "阴蒂整形", "激光阴道紧缩术" ]
"""
operators_add_tags_names = list() operators_add_tags_names = list()
operators_add_tags_names = get_tag_v3_names_by_tag_v3_ids(item['operators_add_tags']) operators_add_tags_names = get_tag_v3_names_by_tag_v3_ids(item['operators_add_tags'])
tractate_all_tag_names.extend( tractate_all_tag_names.extend(
......
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