Commit 908d7aba authored by lixiaofang's avatar lixiaofang

reply

parent 27efa713
......@@ -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 creator_id,id from community_pictorial where is_online =True and id not in (select pictorial_id from reply group by pictorial_id)")
"select creator_id,id from community_pictorial where is_online =True and is_deleted=False 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)
......
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