"SELECT id,user_id FROM topic WHERE is_online =1 and (id > "+str(num1)+" and id <= "+str(num2)+") and (content_level = 4 or content_level = 5) and user_id in (select user_id from user_extra where is_shadow = 1)")
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > "+str(num1)+" and id <= "+str(
num2)+") and (content_level = 4 or content_level = 5) ")
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
topic_id=list(data)
topic_id_list=[]
foriintopic_id[1]:
cursor.execute(
"SELECT user_id from user_extra where is_shadow = 1 and user_id = "+str(i)+"")