From 6ffcad8f3e6d213283015e15e335046c244fe041 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 9 Mar 2023 11:08:24 +0800 Subject: [PATCH] Update manage.py --- appmanage/api/service/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 48a346f7..a05c650c 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -93,8 +93,8 @@ def set_app_info(output_list, num): def install_app_process(app_name): if docker.check_app_directory(app_name): - - ret = Response(code=const.RETURN_SUCCESS, message="20%") + percentage = docker.get_process_perc(app_name): + ret = Response(code=const.RETURN_SUCCESS, message=percentage) ret = ret.dict() else: ret = Response(code=const.RETURN_FAIL , message="目前没有安装此App")