Commit e6b9074b authored by lixiaofang's avatar lixiaofang

add

parent aaee2e3b
......@@ -48,6 +48,7 @@ def get_data(num1, num2):
num2) + ") and (content_level = 4 or content_level = 5) ")
data = cursor.fetchall()
topic_id = list(data)
logging.info("Database version : %s " % topic_id)
if topic_id:
topic_id_list = []
......@@ -93,7 +94,7 @@ if __name__ == "__main__":
if topic_id:
for id in topic_id :
for id in topic_id:
rand_num = random.randint(0, 4)
......
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