"SELECT distinct(user_id),id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT user_id , id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'"%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
topic_id=list(data)
user_list=get_user_id()
topic_id_list=[]
iftopic_id:
foriintopic_id:
ifint(i[1])inuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
"SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' "%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
topic_id=list(data)
user_list=get_user_id()
topic_id_list=[]
iftopic_id:
foriintopic_id:
ifint(i[1])inuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' "%numtime)
topic_data=cursor.fetchall()
cursor.execute(
"SELECT distinct(user_id) FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT distinct(user_id) FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%'"%numtime)
new_user_data=cursor.fetchall()
topic_data=list(topic_data)
new_user_data=list(new_user_data)
user_id=[]
foriintopic_data:
user_id.append(i)
foriinnew_user_data:
user_id.append(i)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
iftopic_data:
foriintopic_data:
ifint(i)inuser_list:
topic_id_list.append(i)
ifnew_user_data:
foriinnew_user_data:
ifiinuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'"%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i[1])inuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
cursor.execute("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 ) and user_id in (select user_id from user_extra where is_shadow = 0)",(numtime))
cursor.execute(
"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 )",
(numtime))
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i)notinuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
"select distinct(user_id) from pv_maidian where page_name ='home' and partiton_date like '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"select distinct(user_id) from pv_maidian where page_name ='home' and partiton_date like '%%%%%s%%%%'"%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.pcinfo("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i)notinuser_list:
topic_id_list.append(i)
logging.pcinfo("Database version : %s "%topic_id_list)
"SELECT user_id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT user_id,id FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' "%numtime)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and (content_level =4 or content_level =5) and create_time LIKE '%%%%%s%%%%'"%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i)notinuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
cursor.execute("SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' and user_id in (select user_id from user_extra where is_shadow = 0)"%numtime)
cursor.execute(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%'"%numtime)
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i)notinuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)
"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) and user_id in (select user_id from user_extra where is_shadow = 0)",
"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)",
(numtime))
data=cursor.fetchall()
user_id=list(data)
logging.info("Database version : %s "%user_id)
user_list=get_user_id()
topic_id_list=[]
ifuser_id:
foriinuser_id:
ifint(i[1])notinuser_list:
topic_id_list.append(i)
logging.info("Database version : %s "%topic_id_list)