From 83166f78a3061fcfab0f25d1fc0f2f964fc13a3b Mon Sep 17 00:00:00 2001 From: zzh Date: Thu, 24 Oct 2024 14:11:23 +0800 Subject: [PATCH] =?UTF-8?q?gs=5Fcheckse=E5=B7=A5=E5=85=B7=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9C=80=E5=A4=A7=E8=BF=9E=E6=8E=A5=E6=95=B0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/local/LocalCheckSE.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/local/LocalCheckSE.py b/script/local/LocalCheckSE.py index 11760df..941e324 100644 --- a/script/local/LocalCheckSE.py +++ b/script/local/LocalCheckSE.py @@ -2767,7 +2767,10 @@ def setUserConnection(data): result.db = [] try: for item in data.db: - sql_query = """ALTER ROLE %s CONNECTION LIMIT 1024;""" %(item.split("|")[0].strip()) + user_to_modify = item.split("|")[0].strip() + if user_to_modify == getUserInfo().username: + continue + sql_query = """ALTER ROLE %s CONNECTION LIMIT 1024;""" % user_to_modify getDatabaseInfo(result, sql_query) except Exception as e: data.errormsg = e.__str__()