Commit 7e2667ff authored by 张彦钊's avatar 张彦钊

change test file

parent 56915fa9
...@@ -190,7 +190,7 @@ def to_data_base(): ...@@ -190,7 +190,7 @@ def to_data_base():
db = pymysql.connect(host='172.16.40.158', port=4000, user='root', db = pymysql.connect(host='172.16.40.158', port=4000, user='root',
passwd='3SYz54LS9#^9sBvC', db='jerry_test') passwd='3SYz54LS9#^9sBvC', db='jerry_test')
cursor = db.cursor() cursor = db.cursor()
sql = "select device_id from esmm_device_diary_queue limit 6" sql = "select device_id from esmm_resort_diary_queue"
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() result = cursor.fetchall()
db.close() db.close()
...@@ -198,6 +198,7 @@ def to_data_base(): ...@@ -198,6 +198,7 @@ def to_data_base():
print([i[0] for i in result]) print([i[0] for i in result])
return [i[0] for i in result] return [i[0] for i in result]
else: else:
print(122)
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