Commit 5c91b38f authored by 张彦钊's avatar 张彦钊

change test file

parent 0c95793d
......@@ -71,9 +71,10 @@ def get_queues(device_id,city_id):
"where device_id = '{}' and city_id = '{}'".format(device_id,city_id)
cursor.execute(sql)
result = cursor.fetchone()
db.close()
if len(result) > 0:
print(cursor.fetchone())
return list(cursor.fetchone())
print(result)
return list(result)
else:
return []
......
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