修复重启功能

This commit is contained in:
ngfchl
2022-09-13 22:56:58 +08:00
parent 8960b5b6fe
commit 73713733f4

View File

@@ -180,7 +180,7 @@ def update_page(request):
restart = 'false'
delta = '程序未在容器中启动?'
# 从内部获取容器id
for c in client.containers.list():
for c in client.api.containers():
if 'ngfchl/ptools' in c.get('Image'):
cid = c.get('Id')
delta = c.get('Status')