Commit 6a831bab authored by 王志伟's avatar 王志伟

Merge branch 'wzw' into 'master'

更改取device_id的表

See merge request !12
parents da2920a3 011cc805
...@@ -20,9 +20,9 @@ def get_yesterday_date(): ...@@ -20,9 +20,9 @@ def get_yesterday_date():
def get_data(): def get_data():
conn2db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='eagle') conn2db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod')
cursor = conn2db.cursor() cursor = conn2db.cursor()
sql = "select device_id from eagle.ffm_diary_queue where device_id regexp '[3|4]$'" sql = "select device_id from nd_device_cid_similarity_matrix where device_id regexp '[3|4]$'"
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() result = cursor.fetchall()
device_id = tuple(pd.DataFrame(list(result))[0].values.tolist()) device_id = tuple(pd.DataFrame(list(result))[0].values.tolist())
......
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