From b31e5cdadab658d396fa42e567ea4821f42c4ce3 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Mon, 22 Jul 2024 16:15:59 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=20=E5=A4=84=E7=90=86=E5=A4=9A=E5=B1=82s?= =?UTF-8?q?ketch=20design=E5=87=BA=E7=8E=B0=E7=9A=84=E5=86=85=E6=90=AD?= =?UTF-8?q?=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/service/design/service.py b/app/service/design/service.py index 0200249..9e29cc0 100644 --- a/app/service/design/service.py +++ b/app/service/design/service.py @@ -27,7 +27,7 @@ def update_progress(process_id, total): if int(progress) <= 100: r.write(key=process_id, value=int(progress) + int(100 / total)) else: - r.write(key=process_id, value=100) + r.write(key=process_id, value=99) return progress elif total == 1: r.write(key=process_id, value=100) @@ -62,8 +62,8 @@ def generate(request_data): obj = futures[future] return_response[obj] = future.result()[0] return_png_mask.extend(future.result()[1]) - final_progress(process_id) upload_results = process_images(return_png_mask) + final_progress(process_id) return return_response