This commit is contained in:
yumoqing 2026-05-16 16:53:01 +08:00
parent 168ce230c4
commit eebe7c2733

View File

@ -308,7 +308,7 @@ class PricingProgram:
async def reload_pp_data(ppt): async def reload_pp_data(ppt):
env = ServerEnv() env = ServerEnv()
ppid = None ppid = None
async with get_sqlor_context(env, 'pricing') as sor: async with get_sor_context(env, 'pricing') as sor:
recs = await sor.R('pricing_program', {'id': ppt['id']}) recs = await sor.R('pricing_program', {'id': ppt['id']})
if len(recs) == 0: if len(recs) == 0:
exception(f'{ppt["id"]} not found in pricing_program') exception(f'{ppt["id"]} not found in pricing_program')