Commit 4d5bef23 authored by 张彦钊's avatar 张彦钊

change test file

parent 05ac0831
......@@ -67,7 +67,7 @@ def tractate_write(device_id,cid):
cursor = db.cursor()
cursor.execute(sql)
result = cursor.fetchall()
if result is not None:
if len(result) > 0:
tags = result[0][0]
if tags is not None:
sql = "select a.id from src_mimas_prod_api_tractate a left join src_mimas_prod_api_tractate_tag b " \
......
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