Update manage.py

This commit is contained in:
qiaofeng1227 2023-03-27 09:55:54 +08:00 committed by GitHub
parent 091c98e392
commit e1f2dbf047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ def install_app_process(app_id):
app_name = split_app_id(app_id)
var_path = "/data/apps/" + app_name + "/variables.json"
real_name = docker.read_var(var_path, 'name')
if docker.check_app_directory(app_name):
if docker.check_app_directory(real_name):
percentage = docker.get_process_perc(app_name, real_name)
ret = Response(code=const.RETURN_SUCCESS, message=percentage)
ret = ret.dict()