bugfix
This commit is contained in:
parent
b45c85448a
commit
e9a0cf6650
@ -40,6 +40,6 @@ db = DBPools()
|
|||||||
dbname = get_module_dbname('discount')
|
dbname = get_module_dbname('discount')
|
||||||
debug(f'get_products_with_discount: org_id={user_orgid}, discountid={discountid}, dbname={dbname}')
|
debug(f'get_products_with_discount: org_id={user_orgid}, discountid={discountid}, dbname={dbname}')
|
||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
r = await sor.sqlPaging(sql, ns)
|
r = await sor.sqlPaging(sql, ns.copy())
|
||||||
debug(f'get_products_with_discount: returned {len(r.get("rows", []))} products')
|
debug(f'{sql=}, {ns=},get_products_with_discount: returned {len(r.get("rows", []))} products')
|
||||||
return r
|
return r
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user