From 78ef190c9d43ca3ea147e4ed4d23ae994e6c36da Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Apr 2026 17:59:26 +0800 Subject: [PATCH] bugfix --- wwwroot/oca.dspy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wwwroot/oca.dspy b/wwwroot/oca.dspy index 181c8b5..7045b7f 100644 --- a/wwwroot/oca.dspy +++ b/wwwroot/oca.dspy @@ -1,6 +1,5 @@ -iorgid = params_kw.orgid -db = DBPools() -async with db.sqlorContext(dbname) as sor: +orgid = params_kw.orgid +async with get_sor_context(request._run_ns, 'accounting') as sor: recs = await sor.R('organization', {'id': orgid}) if len(recs) == 0: return f"error: {orgid=} not found"