Commit f2802772 by BoxuanXu

change insert sql

1 parent e7196529
Showing with 2 additions and 2 deletions
......@@ -107,7 +107,7 @@ def update_pkg_info_db(modelid,sdk_fid,stmodel_fid):
#update pkg info table
logging.info("begin insert model_id ,sdk_fid,mxnet_modelid into pkg_info table")
sql_cmd = "insert into seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values(" + str(modelid) +",\'" + sdk_fid + "\',\'" + stmodel_fid + "\')"
sql_cmd = "insert ignore into seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values(" + str(modelid) +",\'" + sdk_fid + "\',\'" + stmodel_fid + "\')"
curl_atlas_exe.execute(sql_cmd)
db_atlas.commit()
......@@ -134,7 +134,7 @@ def Dirver_Convert():
if stmodel_fid is None:
logging.info("upload filed")
else:
sdk_fid = "group2/M00/00/04/wKgB61l-xXKARFT0AAANtlf6yRo13.json"
sdk_fid = ""
update_pkg_info_db(modelid,sdk_fid,stmodel_fid)
#remove params file and graph file
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!