From e9a0cf6650af685ae4c7741e9d210ba34f4c4642 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 11:02:35 +0800 Subject: [PATCH] bugfix --- wwwroot/discount_setting/get_products_with_discount.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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