Commit ac3f6c49 authored by lixiaofang's avatar lixiaofang

add

parent 81f25b96
......@@ -22,8 +22,7 @@ if __name__ == "__main__":
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
"SELECT id,user_id FROM topic WHERE id in %d and user_id in (select user_id from user_extra where is_shadow = 0)",
([831338,831336]))
"SELECT id,user_id FROM topic WHERE id in 【"+[831338,831336]+"】 and user_id in (select user_id from user_extra where is_shadow = 0)")
data = cursor.fetchall()
topic_id_list = list(data)
logging.info("Database version : %s " % topic_id_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment