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

change test file

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