bugfix
This commit is contained in:
parent
d37df70e1b
commit
4fece5b72e
@ -39,16 +39,16 @@ group by a.providerid, a.iconid, b.orgname"""
|
|||||||
|
|
||||||
async def get_llms_by_provider(pid):
|
async def get_llms_by_provider(pid):
|
||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
async with get_sor_context(env, 'llmage') as sor:
|
async with get_sor_context(env, 'llmage') as sor:
|
||||||
today = curDateString()
|
today = curDateString()
|
||||||
sql = """select * from llm
|
sql = """select * from llm
|
||||||
where providerid = ${pid}$
|
where providerid = ${pid}$
|
||||||
and enabled_date <= ${today}$
|
and enabled_date <= ${today}$
|
||||||
and expired_date > ${today}$
|
and expired_date > ${today}$
|
||||||
"""
|
"""
|
||||||
recs = await sor.sqlExe(sql, {'pid': pid, 'today': today})
|
recs = await sor.sqlExe(sql, {'pid': pid, 'today': today})
|
||||||
return recs
|
return recs
|
||||||
return []
|
return []
|
||||||
|
|
||||||
async def get_llmcatelogs():
|
async def get_llmcatelogs():
|
||||||
db = DBPools()
|
db = DBPools()
|
||||||
@ -88,10 +88,10 @@ from (
|
|||||||
select a.*, b.hfid, e.ioid, e.stream
|
select a.*, b.hfid, e.ioid, e.stream
|
||||||
from llm a, llmcatelog b,upapp c, uapiset d, uapi e
|
from llm a, llmcatelog b,upapp c, uapiset d, uapi e
|
||||||
where a.llmcatelogid = b.id
|
where a.llmcatelogid = b.id
|
||||||
and a.upappid = c.id
|
and a.upappid = c.id
|
||||||
and c.apisetid = d.id
|
and c.apisetid = d.id
|
||||||
and e.apisetid = d.id
|
and e.apisetid = d.id
|
||||||
and a.apiname = e.name
|
and a.apiname = e.name
|
||||||
and a.expired_date > ${today}$
|
and a.expired_date > ${today}$
|
||||||
and a.enabled_date <= ${today}$
|
and a.enabled_date <= ${today}$
|
||||||
) x left join historyformat y on x.hfid = y.id
|
) x left join historyformat y on x.hfid = y.id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user