bugfix
This commit is contained in:
parent
81171ac12e
commit
78ef190c9d
@ -1,6 +1,5 @@
|
|||||||
iorgid = params_kw.orgid
|
orgid = params_kw.orgid
|
||||||
db = DBPools()
|
async with get_sor_context(request._run_ns, 'accounting') as sor:
|
||||||
async with db.sqlorContext(dbname) as sor:
|
|
||||||
recs = await sor.R('organization', {'id': orgid})
|
recs = await sor.R('organization', {'id': orgid})
|
||||||
if len(recs) == 0:
|
if len(recs) == 0:
|
||||||
return f"error: {orgid=} not found"
|
return f"error: {orgid=} not found"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user