Commit 48940a01 authored by lixiaofang's avatar lixiaofang

add

parent a58dee00
......@@ -17,7 +17,7 @@ def get_topic_id(numtime1, numtime2):
cursor = pc.cursor()
cursor.execute(
"SELECT id,user_id FROM topic WHERE is_online=1 and create_time > '%s' and create_time < '%s' and id not in "
"(select topic_id from reply where is_online=1 and create_time > '%s' and create_time < '%s')" % (
"(select topic_id from reply where create_time > '%s' and create_time < '%s')" % (
numtime1, numtime2, numtime1, numtime2)
)
data = cursor.fetchall()
......
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