bugfix
This commit is contained in:
parent
d5ae39589e
commit
fb67cd58ad
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user