Commit 47c87ba8 by BoxuanXu

Edit Wrong code

1 parent a9d4b74c
Showing with 5 additions and 1 deletions
......@@ -61,6 +61,10 @@ def get_path_from_db(modelid,seetanet_model):
return None,None
else:
path_name = str(result_atlas[0])
if path_name.find("::") == -1:
logging.info('get wrong parameters!')
return None,None
path_list = path_name.split("::")
if len(path_list) != 2:
logging.info('get wrong parameters!')
......@@ -186,7 +190,7 @@ t = threading.Thread(target=get_info_from_queue,args=(1,))
@app.route('/convert',methods=['POST'])
def Dirver_Convert():
#get parameter modelid from post stream
return_flag = "queue"
return_flag = "Packing..."
try:
modelid=request.form['modelid']
output_layer=request.form['output_layer']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!