Commit 2785ad73 authored by lixiaofang's avatar lixiaofang

update

parent 66edd2be
......@@ -25,7 +25,7 @@ def get_data(numtime, numtime2):
"select user_id,is_shadow from user_extra where user_id =" + str(i[0]))
data = cursor.fetchall()
user_id = list(data)
if (user_id and user_id[1] == 0) or len(data) == 0:
if (user_id and user_id[0][1] == 0) or len(data) == 0:
topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list)
......
......@@ -24,7 +24,7 @@ def get_data(numtime, numtime2):
"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:
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