Commit 489ab2d2 authored by lixiaofang's avatar lixiaofang

add

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