Commit 702d5b5c authored by lixiaofang's avatar lixiaofang

diary_topic

parent 2785ad73
......@@ -21,9 +21,11 @@ def get_data(numtime, numtime2):
logging.info("get topic_id:%s" % topic_id)
for i in topic_id and topic_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_online =1 and is_deleted =0")
"select user_id,is_shadow from user_extra where user_id =" + str(
i[0]) + " and is_online =1 and is_deleted =0")
data = cursor.fetchall()
user_id = list(data)
logging.info("get user_id:%s" % user_id)
if (user_id and user_id[0][1] == 0) or len(user_id) == 0:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
......
......@@ -23,10 +23,11 @@ def get_data(numtime, numtime2):
logging.info("get topic_id:%s" % topic_id)
for i in topic_id and topic_id:
cursor.execute(
"select user_id from user_extra where user_id =" + str(i[0]) + " and is_online =1 and is_deleted =0")
"select user_id,is_shadow from user_extra where user_id =" + str(
i[0]) + " and is_online =1 and is_deleted =0")
data = cursor.fetchall()
user_id = list(data)
if user_id:
if (user_id and user_id[0][1] == 0) or len(user_id) == 0:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
pc.close()
......
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