diff --git a/wwwroot/discount_setting/get_products_with_discount.dspy b/wwwroot/discount_setting/get_products_with_discount.dspy index 8fabdcd..bc48efd 100644 --- a/wwwroot/discount_setting/get_products_with_discount.dspy +++ b/wwwroot/discount_setting/get_products_with_discount.dspy @@ -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