Commit 50eba775 authored by 段英荣's avatar 段英荣

modify

parent f183e738
......@@ -219,10 +219,10 @@ class TopicUtils(object):
not_group_topic_ids = list()
for item in result_dict["hits"]:
if item[b"_source"][b"group_id"] and item[b"_source"][b"group_id"]> 0:
group_topic_ids.append(item[b"_source"][b"id"])
if item["_source"]["group_id"] and item["_source"]["group_id"]> 0:
group_topic_ids.append(item["_source"]["id"])
else:
not_group_topic_ids.append(item[b"_source"][b"id"])
not_group_topic_ids.append(item["_source"]["id"])
return (group_topic_ids,not_group_topic_ids)
except:
......
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