From 8c86881a83d2202abb5c733dc68104b60b1ab308 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 24 Mar 2026 13:45:39 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index c09a140..46c8dc1 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -196,8 +196,7 @@ class PricingProgram: if not recs: debug(f'id={ppid} pricing_program not found') r = recs[0] - PricingProgram.pp_db2app(r) - x = [ DictObject(**f) for f in r.pricing_spec ] + x = DictObject(** yaml.safe_load(r.pricing_spec)) webpath = env.quote(write_pattern_xlsx(x)) return entire_url(f'/idfile?path={webpath}')