diff --git a/uapi/apidata.py b/uapi/apidata.py index 8687fa6..2566cdf 100644 --- a/uapi/apidata.py +++ b/uapi/apidata.py @@ -25,10 +25,9 @@ async def get_deerer(upappid, callerid): async def sor_get_uapi(sor, upappid, apiname): sql = """select a.*, -c.auth_apiname -from uapi a, upapp b, uapiset c +b.auth_apiname +from uapi a, upapp b where a.apisetid = b.apisetid - and b.apisetid = c.id and a.name = ${apiname}$ and b.id = ${upappid}$""" recs = await sor.sqlExe(sql, {'upappid': upappid, 'apiname': apiname}) diff --git a/uapi/appapi.py b/uapi/appapi.py index 6d205cf..c860b8c 100644 --- a/uapi/appapi.py +++ b/uapi/appapi.py @@ -90,10 +90,9 @@ async def get_userapikey(sor, upappid, callerid): async def sor_get_uapi(sor, upappid, apiname): sql = """select a.*, -c.auth_apiname -from uapi a, upapp b, uapiset c +b.auth_apiname +from uapi a, upapp b where a.apisetid = b.apisetid - and b.apisetid = c.id and a.name = ${apiname}$ and b.id = ${upappid}$""" recs = await sor.sqlExe(sql, {'upappid': upappid, 'apiname': apiname})