This commit is contained in:
yumoqing 2026-06-29 11:02:35 +08:00
parent b45c85448a
commit e9a0cf6650

View File

@ -40,6 +40,6 @@ db = DBPools()
dbname = get_module_dbname('discount')
debug(f'get_products_with_discount: org_id={user_orgid}, discountid={discountid}, dbname={dbname}')
async with db.sqlorContext(dbname) as sor:
r = await sor.sqlPaging(sql, ns)
debug(f'get_products_with_discount: returned {len(r.get("rows", []))} products')
r = await sor.sqlPaging(sql, ns.copy())
debug(f'{sql=}, {ns=},get_products_with_discount: returned {len(r.get("rows", []))} products')
return r