From 73713733f47d7b1b2d786cde5d07c248382b2cc9 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 13 Sep 2022 22:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=90=AF=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 8a9345e..4aaf4cd 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -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')