Update manage.py

This commit is contained in:
qiaofeng1227 2023-03-09 11:08:24 +08:00 committed by GitHub
parent 2120b5c6ec
commit 6ffcad8f3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")