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

modify

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