Commit 16f8cb97 authored by lixiaofang's avatar lixiaofang

add

parent 572ceda7
...@@ -47,15 +47,17 @@ def get_data(num1, num2): ...@@ -47,15 +47,17 @@ def get_data(num1, num2):
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > 0 and id <= 10000) and (content_level = 4 or content_level = 5) ") "SELECT id,user_id FROM topic WHERE is_online =1 and (id > 0 and id <= 10000) and (content_level = 4 or content_level = 5) ")
data = cursor.fetchall() data = cursor.fetchall()
topic_id = list(data) topic_id = list(data)
logging.info("Database version : %s " % topic_id) # logging.info("Database version : %s " % topic_id)
user_list = get_user_id() user_list = get_user_id()
logging.info("get user_list:%s"%user_list)
if topic_id: if topic_id:
topic_id_list = [] topic_id_list = []
for i in topic_id: for i in topic_id:
if i[1] and i[1] in user_list: if i[1] and i[1] in user_list:
topic_id_list.append(i) topic_id_list.append(i)
print(i)
logging.info("Database version : %s " % topic_id) logging.info("Database version : %s " % topic_id)
pc.close() pc.close()
logging.info("topic_id_list:%s"%topic_id_list) logging.info("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