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

add print

parent 7ad42665
......@@ -221,11 +221,12 @@ def get_queue(device_id, city_id,queue_name):
db = pymysql.connect(host=LOCAL_HOST, port=3306, user='work',
passwd='workwork', db='doris_test')
print(db)
cursor = db.cursor()
sql = "select {} from device_diary_queue " \
"where device_id = '{}' and city_id = '{}';".format(queue_name,device_id, city_id)
cursor.execute(sql)
print(2)
result = cursor.fetchall()
df = pd.DataFrame(list(result))
print("multi")
......
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