"select distinct(user_id) from account_user_auth where user_id not in (select user_id from pv_maidian where page_name ='home' and partiton_date >= %s )",
"select distinct(user_id) from topic where is_online=1 and create_time > '%s' and create_time < '%s' and is_shadow = 0"%(
(numtime))
numtime1,numtime2))
data=cursor.fetchall()
data=cursor.fetchall()
user_id=list(data)
user_id=list(data)
topic_id_list=[]
logging.info("Database version : %s "%user_id)
foriinuser_idanduser_id:
cursor.execute(
"select user_id from user_extra where user_id ="+str(i[0])+" and is_shadow =0 ")
data=cursor.fetchall()
user_id=list(data)
ifuser_id:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)