From 8c0a074c338295c46725c48dcc854e3b47c05d3f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 27 Oct 2025 15:43:35 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index a51167f..cc7ef9d 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -27,7 +27,7 @@ class PricingProgram: recs = await self.sor.R('pricing_spec', {'ptid': self.psid}) return recs - asyn def get_spec_by_id(self, psid): + async def get_spec_by_id(self, psid): recs = await self.sor.R('pricing_spec', {'id': psid}) if len(recs) > 0: return recs[0] @@ -60,7 +60,7 @@ async def pricing_program_charging(sor, pricing_program_id, data): charges = [] for item in pp_items: charge = item.copy() - spec = await pp.get_spec_by_psid(charge.psid) + spec = await pp.get_spec_by_id(charge.psid) d = data.get(spec.spec_name) if d is None: continue