From 8e016dcc4ed8a02f9ae480fc5dc05bfcc1abf15a Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Sat, 26 Aug 2023 18:34:04 +0200 Subject: [PATCH] Fix Java syntax in Python code :S --- backend/localplatform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/localplatform.py b/backend/localplatform.py index 519c9ac17..3a35df5d1 100644 --- a/backend/localplatform.py +++ b/backend/localplatform.py @@ -45,6 +45,6 @@ def get_log_level() -> int: def get_selinux() -> bool: if ON_LINUX: from subprocess import check_output - check_output("getenforce").decode("ascii").strip("\n") == "Enforcing" ? True : False + return True if (check_output("getenforce").decode("ascii").strip("\n") == "Enforcing") else return False else: return False