Commit 2fffdcdf authored by Your Name's avatar Your Name

test

parent 5477aed0
......@@ -249,7 +249,7 @@ if __name__ == "__main__":
cur = con.cursor()
for i in range(0, device_count):
query = "INSERT INTO esmm_device_diary_queue_test (device_id, city_id, time,nearby_queue) VALUES(%s, %s, %s, %s) ON DUPLICATE KEY UPDATE device_id=%s, city_id=%s, time=%s, nearby_queue=%s"
cur.execute(query, (df2.device_id[i], df2.city_id[i], df2.time[i], df.nearby_queue[i], df2.device_id[i], df2.city_id[i], df2.time[i], df.nearby_queue[i]))
cur.execute(query, (df2.device_id[i], df2.city_id[i], df2.time[i], df2.nearby_queue[i], df2.device_id[i], df2.city_id[i], df2.time[i], df2.nearby_queue[i]))
con.commit()
con.close()
......
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