feat 处理多层sketch design出现的内搭越界问题
fix
This commit is contained in:
@@ -27,7 +27,7 @@ def update_progress(process_id, total):
|
|||||||
if int(progress) <= 100:
|
if int(progress) <= 100:
|
||||||
r.write(key=process_id, value=int(progress) + int(100 / total))
|
r.write(key=process_id, value=int(progress) + int(100 / total))
|
||||||
else:
|
else:
|
||||||
r.write(key=process_id, value=100)
|
r.write(key=process_id, value=99)
|
||||||
return progress
|
return progress
|
||||||
elif total == 1:
|
elif total == 1:
|
||||||
r.write(key=process_id, value=100)
|
r.write(key=process_id, value=100)
|
||||||
@@ -62,8 +62,8 @@ def generate(request_data):
|
|||||||
obj = futures[future]
|
obj = futures[future]
|
||||||
return_response[obj] = future.result()[0]
|
return_response[obj] = future.result()[0]
|
||||||
return_png_mask.extend(future.result()[1])
|
return_png_mask.extend(future.result()[1])
|
||||||
final_progress(process_id)
|
|
||||||
upload_results = process_images(return_png_mask)
|
upload_results = process_images(return_png_mask)
|
||||||
|
final_progress(process_id)
|
||||||
return return_response
|
return return_response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user