Commit 734b4b7b authored by lixiaofang's avatar lixiaofang

add

parent 5cd49942
...@@ -45,7 +45,7 @@ def get_data(now, noww): ...@@ -45,7 +45,7 @@ def get_data(now, noww):
id[0]) + " and is_online =1 and is_deleted =0") id[0]) + " and is_online =1 and is_deleted =0")
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
if (user_id and user_id[0][1] == 0) or len(user_id) == 0: if user_id and user_id[0][1] == 1:
topic_id_list.append(id) topic_id_list.append(id)
pc.close() pc.close()
logging.info("get majia topic_id_list:%s" % topic_id_list) logging.info("get majia topic_id_list:%s" % topic_id_list)
......
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