Commit 66edd2be authored by lixiaofang's avatar lixiaofang

add

parent 489ab2d2
......@@ -21,7 +21,7 @@ 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]))
"select user_id 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 and user_id[1] == 0) or len(user_id) == 0:
......
......@@ -23,7 +23,7 @@ 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_shadow =0")
"select user_id 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:
......
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