From 7cbca85a60eb5c18a524e699a60e1ac83946b20c Mon Sep 17 00:00:00 2001 From: snowykami Date: Sun, 6 Oct 2024 04:39:04 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86linux=E8=8E=B7=E5=8F=96=E5=8F=91=E8=A1=8C=E7=89=88?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_status/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_status/api.py b/server_status/api.py index 4ae5cee..dfdc516 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -20,7 +20,7 @@ try: for line in os_release.split("\n"): if line.startswith("NAME="): os_name = line.split("=")[1].replace('"', '') - elif line.startswith("VERSION="): + elif line.startswith("VERSION_ID="): os_version = line.split("=")[1].replace('"', '') except FileNotFoundError: os_name = platform.system()