From ec91b5d9ce6c04d04559776cf0bb00c3b1cb7ef5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 14:05:25 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index b8eb7c4..5fe1679 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -440,7 +440,7 @@ order by b.enabled_date desc""" raise Exception(e) debug(f'{formula=}, {ns=}, {p=}, {d.fields=}') np.update(ns) - np.amount = eval(formula, ns) + np.amount = eval(formula, config_data) ret_items.append(np) if len(ret_items) == 0: e = f'{config_data=}{yamlstr=}没有找到合适的定价'