From e74324e21b219dc03889915a27d602590518036d Mon Sep 17 00:00:00 2001 From: Snowykami Date: Mon, 9 Dec 2024 00:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=A4=A7=E5=B0=8F=E5=86=99=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9DLinux=E5=92=8CmacOS=E7=9A=84=E5=88=86?= =?UTF-8?q?=E5=8C=BA=E7=9B=91=E6=8E=A7=E9=80=BB=E8=BE=91=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_status/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server_status/api.py b/server_status/api.py index 03aed92..5abec93 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -214,15 +214,16 @@ class Client: if ( ( - platform.system() == "linux" + platform.system() == "Linux" and ( part.mountpoint.startswith( excluded_partition_prefix ) ) ) - or ( - platform.system() == "darwin" + or + ( + platform.system() == "Darwin" and not part.mountpoint.startswith( include_partition_prefix_mac )