Commit 1535eea2 authored by 李小芳's avatar 李小芳

get_highlight_v2

parent 32b8b51c
...@@ -210,9 +210,9 @@ def get_answers(pks): ...@@ -210,9 +210,9 @@ def get_answers(pks):
for tag in tags_info: for tag in tags_info:
all_tags.append(tag.get("id", None)) all_tags.append(tag.get("id", None))
if tag.get("id", 0) in (15928, 10682): if tag.get("id", 0) in (15928, 10682):
item['selected_stars'].append(tag.get("name", None)) item['selected_stars'].append(tag.get("tag_name", None))
elif tag.get("id", 0) in (15930, 10683): elif tag.get("id", 0) in (15930, 10683):
item['selected_internet_celebrity'].append(tag.get("name", None)) item['selected_internet_celebrity'].append(tag.get("tag_name", None))
else: else:
pass pass
if tag.get("id") == 14288: if tag.get("id") == 14288:
......
...@@ -261,9 +261,9 @@ def get_tractate(pks): ...@@ -261,9 +261,9 @@ def get_tractate(pks):
for tag in tags_info: for tag in tags_info:
all_tags.append(tag.get("id", None)) all_tags.append(tag.get("id", None))
if tag.get("id", 0) in (15928, 10682): if tag.get("id", 0) in (15928, 10682):
item['selected_stars'].append(tag.get("name", None)) item['selected_stars'].append(tag.get("tag_name", None))
elif tag.get("id", 0) in (15930, 10683): elif tag.get("id", 0) in (15930, 10683):
item['selected_internet_celebrity'].append(tag.get("name", None)) item['selected_internet_celebrity'].append(tag.get("tag_name", None))
else: else:
pass pass
if tag.get("id") == 14288: if tag.get("id") == 14288:
......
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