bugfix
This commit is contained in:
parent
4b8dbf4d82
commit
671a5f9473
@ -41,13 +41,12 @@ where a.llmcatelogid = b.id
|
|||||||
recs = await sor.sqlExe(sql, {'llmid': llmid})
|
recs = await sor.sqlExe(sql, {'llmid': llmid})
|
||||||
if len(recs) > 0:
|
if len(recs) > 0:
|
||||||
r = recs[0]
|
r = recs[0]
|
||||||
apis = await sor_get_uapi(sor, r.upappid, r.apiname)
|
api = await sor_get_uapi(sor, r.upappid, r.apiname)
|
||||||
if len(apis) == 0:
|
if api is None:
|
||||||
e = Exception(f'{r.upappid=},{r.apiname=} uapi not found')
|
e = Exception(f'{r.upappid=},{r.apiname=} uapi not found')
|
||||||
exception(f'{e=}\n{format_exc()}')
|
exception(f'{e=}\n{format_exc()}')
|
||||||
raise e
|
raise e
|
||||||
api = apis[0]
|
r.inputfields = api.input_fields
|
||||||
r.inputfields = api.paramsdesc
|
|
||||||
return recs[0]
|
return recs[0]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user