From a2aa95ef9467a408f76ca5eee5778886c9a5c90d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 13:35:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=5Frun=5Fenv=E2=86=92=5Frun=5Fns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discount/init.py b/discount/init.py index b0d66fd..2e91ce7 100644 --- a/discount/init.py +++ b/discount/init.py @@ -739,7 +739,7 @@ async def get_discount_setting_products(request): Used in Jinja2 template: {% set products = get_discount_setting_products(request) %} """ env = request._run_ns - discountid = (request._run_env.param_kw or {}).get('discountid', '') + discountid = (request._run_ns.param_kw or {}).get('discountid', '') user_orgid = await env.get_userorgid() if not discountid or not user_orgid: