Commit ad112f2f authored by 段英荣's avatar 段英荣

modify bug

parent 2dadb187
......@@ -238,7 +238,7 @@ def get_same_tagset_ids(tag_list):
try:
all_tag = list()
if isinstance(tag_list, int):
all_tag.append(list)
all_tag.append(tag_list)
else:
all_tag = tag_list
......@@ -246,14 +246,15 @@ def get_same_tagset_ids(tag_list):
tag_set_list_id = list(
CommunityTagSetRelation.objects.filter(tag_id__in=all_tag, is_deleted=False).values_list("tag_set_id",
flat=True))
logging.info("get tag_set_list_id:%s" % tag_set_list_id)
tag_ids = list(
CommunityTagSetRelation.objects.filter(tag_set_id__in=tag_set_list_id, is_deleted=False).values_list(
"tag_id",
flat=True))
logging.info("get_same_tagset_ids:%s" % str(tag_ids))
return tag_ids
except:
logging_exception()
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {"tag_list": []}
return []
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