bugfix
This commit is contained in:
parent
eebe7c2733
commit
1677d18704
@ -309,9 +309,9 @@ class PricingProgram:
|
|||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
ppid = None
|
ppid = None
|
||||||
async with get_sor_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_timing', {'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_timing')
|
||||||
return
|
return
|
||||||
ppid = recs[0].ppid
|
ppid = recs[0].ppid
|
||||||
debug(f'--EventHandle {ppt}')
|
debug(f'--EventHandle {ppt}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user