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): ...@@ -61,6 +61,10 @@ def get_path_from_db(modelid,seetanet_model):
return None,None return None,None
else: else:
path_name = str(result_atlas[0]) path_name = str(result_atlas[0])
if path_name.find("::") == -1:
logging.info('get wrong parameters!')
return None,None
path_list = path_name.split("::") path_list = path_name.split("::")
if len(path_list) != 2: if len(path_list) != 2:
logging.info('get wrong parameters!') logging.info('get wrong parameters!')
...@@ -186,7 +190,7 @@ t = threading.Thread(target=get_info_from_queue,args=(1,)) ...@@ -186,7 +190,7 @@ t = threading.Thread(target=get_info_from_queue,args=(1,))
@app.route('/convert',methods=['POST']) @app.route('/convert',methods=['POST'])
def Dirver_Convert(): def Dirver_Convert():
#get parameter modelid from post stream #get parameter modelid from post stream
return_flag = "queue" return_flag = "Packing..."
try: try:
modelid=request.form['modelid'] modelid=request.form['modelid']
output_layer=request.form['output_layer'] 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!