From 6fa1dddd11f695d76409294f21b77ace7d60c5dc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 31 Aug 2026 15:53:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(load=5Fpath):=20=E9=AA=8C=E8=AF=81SQL?= =?UTF-8?q?=E7=9A=84%%=E6=94=B9${}$=E5=8D=A0=E4=BD=8D=E7=AC=A6=E2=80=94?= =?UTF-8?q?=E2=80=94sqlor=E8=A3=B8%=E5=BD=93=E6=A0=BC=E5=BC=8F=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E7=AC=A6=E5=B4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index d812d6c..9da528f 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -104,7 +104,8 @@ async def register(): # Verify async with DBPools().sqlorContext("pipeline") as sor: cnt = await sor.sqlExe( - "SELECT COUNT(*) as n FROM permission WHERE path LIKE '/pipeline%' OR path LIKE '/showcase%'", {}) + "SELECT COUNT(*) as n FROM permission WHERE path LIKE ${p1}$ OR path LIKE ${p2}$", + {"p1": "/pipeline%", "p2": "/showcase%"}) print(f"Total pipeline permissions: {cnt[0].n}")