bugfix
This commit is contained in:
parent
58e3e83139
commit
d5ae39589e
@ -1,4 +1,5 @@
|
|||||||
from ahserver.serverenv import ServerEnv
|
from ahserver.serverenv import ServerEnv
|
||||||
|
from sqlor.dbpools import DBPools
|
||||||
from appPublic.log import debug, exception
|
from appPublic.log import debug, exception
|
||||||
|
|
||||||
class PricingProgram:
|
class PricingProgram:
|
||||||
@ -36,7 +37,7 @@ class PricingProgram:
|
|||||||
async def get_pricing_specs_by_ppid(ppid):
|
async def get_pricing_specs_by_ppid(ppid):
|
||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
dbname = env.get_module_dbname('pricing')
|
dbname = env.get_module_dbname('pricing')
|
||||||
db = env.DBPools()
|
db = DBPools()
|
||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
pp = PricingProgram(ppid, sor)
|
pp = PricingProgram(ppid, sor)
|
||||||
await pp.init()
|
await pp.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user