Commit 439efa3a authored by 李小芳's avatar 李小芳

smr

parent 298e3a29
......@@ -266,7 +266,7 @@ def get_tractate(pks):
projects = [list(item.keys())[0] for item in result_data.get("projects", [])]
item['portrait_tag_name'].extend(projects)
if 3315 in item['operators_add_tags']:
if "operators_add_tags" in item and 3315 in item['operators_add_tags']:
item['new_smr'] = tractate.get_tractate_newuser_smr(tractate_id=tractate.id)
data.append(item)
......
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