Commit 030b790a authored by 张彦钊's avatar 张彦钊

change test file

parent 68dbc184
......@@ -69,12 +69,12 @@ def get_queues(device_id,city_id):
cursor = db.cursor()
# sql = "select device_id,city_id from esmm_device_diary_queue " \
# "where device_id = '{}' and city_id = '{}'".format(device_id,city_id)
sql = "select device_id,city_id from esmm_device_diary_queue limit 3"
sql = "select device_id,city_id from esmm_device_diary_queue limit 6"
cursor.execute(sql)
# native_queue, nearby_queue, nation_queue, megacity_queue
# if 判断是不是空
result = cursor.fetchone()
print(result)
# result = cursor.fetchone()
# print(result)
print("a")
print(cursor.fetchall())
return result
......
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