Commit 56915fa9 authored by 张彦钊's avatar 张彦钊

change test file

parent 3b7bd617
......@@ -192,10 +192,16 @@ def to_data_base():
cursor = db.cursor()
sql = "select device_id from esmm_device_diary_queue limit 6"
cursor.execute(sql)
result = cursor.fetchone()
print(result)
print(set(result))
result = cursor.fetchall()
db.close()
if result is not None:
print([i[0] for i in result])
return [i[0] for i in 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