From fb67cd58adda8f6e7aafd40a209850fca9653924 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 27 Oct 2025 16:06:05 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index 8638346..3ccb871 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -9,23 +9,23 @@ class PricingProgram: async def init(self): await self.get_program() - await self.get_pricing_type(self.ptid) + await self.get_pricing_type() async def get_program(self): recs = await self.sor.R('pricing_program', {'id': self.ppid}) if len(recs): self.__dict__.update(recs[0]) - async def get_pricing_type(self, ptid): + async def get_pricing_type(self): self.pricing_type = await self.sor.R('pricing_type', - {'id': ptid}) + {'id': self.ptid}) async def get_items(self): recs = await self.sor.R('pricing_item', {'ppid': self.id}) return recs async def get_specs(self): - recs = await self.sor.R('pricing_spec', {'ptid': self.psid}) + recs = await self.sor.R('pricing_spec', {'ptid': self.ptid}) return recs async def get_spec_by_id(self, psid):