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

Merge branch 'operator_tag' into 'master'

Operator tag

See merge request !25
parents 4113e297 177623d9
......@@ -200,12 +200,12 @@ def get_answers(pks):
item['selected_stars'] = []
item['selected_internet_celebrity'] = []
all_tags = []
for item in tags_info:
all_tags.append(item.get("id", None))
if item.get("tag_type", 0) == TAG_TYPE.STAR:
item['selected_stars'].append(item.get("name", None))
elif item.get("tag_type", 0) == TAG_TYPE.INFLUENCER:
item['selected_internet_celebrity'].append(item.get("name", None))
for tag in tags_info:
all_tags.append(tag.get("id", None))
if tag.get("tag_type", 0) == TAG_TYPE.STAR:
item['selected_stars'].append(tag.get("name", None))
elif tag.get("tag_type", 0) == TAG_TYPE.INFLUENCER:
item['selected_internet_celebrity'].append(tag.get("name", None))
else:
pass
if 15928 in all_tags:
......
......@@ -239,14 +239,15 @@ def get_tractate(pks):
item['selected_stars'] = []
item['selected_internet_celebrity'] = []
all_tags = []
for item in tags_info:
all_tags.append(item.get("id", None))
if item.get("tag_type", 0) == TAG_TYPE.STAR:
item['selected_stars'].append(item.get("name", None))
elif item.get("tag_type", 0) == TAG_TYPE.INFLUENCER:
item['selected_internet_celebrity'].append(item.get("name", None))
for tag in tags_info:
all_tags.append(tag.get("id", None))
if tag.get("tag_type", 0) == TAG_TYPE.STAR:
item['selected_stars'].append(tag.get("name", None))
elif tag.get("tag_type", 0) == TAG_TYPE.INFLUENCER:
item['selected_internet_celebrity'].append(tag.get("name", None))
else:
pass
if 15928 in all_tags:
item['selected_content_type'] = SELECTED_CONTENT_TYPE.BEAUTY_STAR
elif 10682 in all_tags:
......
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