"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()
topic_id=list(data)
logging.info("Database version : %s "%topic_id)
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)