"SELECT id,user_id FROM topic WHERE is_online =1 and ( create_time > '%s' and create_time <= '%s' ) and (content_level = 4 or content_level = 5 or content_level = 6) "%(
"SELECT id,user_id FROM topic WHERE ( create_time > '%s' and create_time <= '%s' ) and is_online = 1 and content_level in (4,5,6) "%(
now,noww))
data=cursor.fetchall()
topic_id=list(data)
topic_id_list=[]
foriintopic_id:
foridintopic_id:
cursor.execute(
"select user_id from user_extra where user_id ="+str(i[1])+" and is_shadow =1")
"select user_id from user_extra where user_id ="+str(id[1])+" and is_shadow =1")