Commit 380acb8d by BoxuanXu

change insert sql

1 parent f2802772
Showing with 1 additions and 1 deletions
...@@ -107,7 +107,7 @@ def update_pkg_info_db(modelid,sdk_fid,stmodel_fid): ...@@ -107,7 +107,7 @@ def update_pkg_info_db(modelid,sdk_fid,stmodel_fid):
#update pkg info table #update pkg info table
logging.info("begin insert model_id ,sdk_fid,mxnet_modelid into pkg_info table") logging.info("begin insert model_id ,sdk_fid,mxnet_modelid into pkg_info table")
sql_cmd = "insert ignore into seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values(" + str(modelid) +",\'" + sdk_fid + "\',\'" + stmodel_fid + "\')" sql_cmd = "insert into seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values(" + str(modelid) +",\'" + sdk_fid + "\',\'" + stmodel_fid + "\')" + " ON DUPLICATE KEY UPDATE sdk_fid=\'" + sdk_fid + "\',stmodel_fid=\'" + stmodel_fid +"\'"
curl_atlas_exe.execute(sql_cmd) curl_atlas_exe.execute(sql_cmd)
db_atlas.commit() db_atlas.commit()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!