Commit e34881f9 authored by lixiaofang's avatar lixiaofang

add

parent 03b8b56d
......@@ -16,7 +16,7 @@ def get_data():
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
"select id from community_pictorial where id not in (select pictorial_id from reply group by pictorial_id)")
"select creator_id,id from community_pictorial where is_online =True and id not in (select pictorial_id from reply group by pictorial_id)")
data = cursor.fetchall()
topic_id = list(data)
logging.info("Database version : %s " % topic_id)
......@@ -28,7 +28,6 @@ def get_data():
def no_reply_principal():
try:
logging.info("comment offline pictorial")
user_id = get_data()
......
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