bugfix
This commit is contained in:
parent
80126a9058
commit
e237ee550d
@ -1,15 +1,19 @@
|
|||||||
ppid = 'sF2gcl7UeANKtnZv8hfvL'
|
ppid = params_kw.ppid
|
||||||
data = {
|
data = params_kw.data
|
||||||
'action': 't2v',
|
try:
|
||||||
'model': 'viduq3-pro',
|
x = buffered_charging(ppid, data)
|
||||||
'resolution': '1024p',
|
return {
|
||||||
'duration': 10,
|
"status": "ok",
|
||||||
'off_peak': False
|
"data": {
|
||||||
|
"ppid": ppid,
|
||||||
|
"data": data,
|
||||||
|
"result": x
|
||||||
|
}
|
||||||
|
}
|
||||||
|
except Exception as e:
|
||||||
|
return {
|
||||||
|
"status": "error",
|
||||||
|
"data": {
|
||||||
|
"message": f'{ppid=}, {data=}, {e}'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
db = DBPools()
|
|
||||||
dbname = get_module_dbname('pricing')
|
|
||||||
async with db.sqlorContext(dbname) as sor:
|
|
||||||
x = await pricing_program_charging(sor, ppid, data)
|
|
||||||
return x
|
|
||||||
|
|
||||||
return f'Except:{db.e_except},{format_exc()}'
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user