Commit 5d6b0e8f authored by 段英荣's avatar 段英荣

judge topic type

parent 0d63506b
......@@ -144,6 +144,8 @@ class TypeInfo(object):
else:
if data:
data_list.append(data)
if self.type == "topic":
ori_topic_star = redis_client.hget(self.physical_topic_star, data["id"])
if not ori_topic_star:
redis_client.hset(self.physical_topic_star, data["id"], data["content_level"])
......
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