bugfix
This commit is contained in:
parent
79adf49709
commit
415f751117
@ -17,17 +17,21 @@ from ahserver.filestorage import FileStorage
|
|||||||
async def llm_query_orders(userorgid, page, pagerows=80):
|
async def llm_query_orders(userorgid, page, pagerows=80):
|
||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
async with get_sor_context(env, 'llmage') as sor:
|
async with get_sor_context(env, 'llmage') as sor:
|
||||||
sql = """select llmid,
|
sql = """select a.llmid,
|
||||||
use_date,
|
a.use_date,
|
||||||
use_time,
|
a.use_time,
|
||||||
userid,
|
a.userid,
|
||||||
usage,
|
a.usages,
|
||||||
status,
|
a.status,
|
||||||
amount,
|
a.amount,
|
||||||
userorgid,
|
a.userorgid,
|
||||||
accounting_status
|
a.accounting_status,
|
||||||
from llmusage
|
b.name,
|
||||||
where userorgid = ${userorgid}$"""
|
b.model
|
||||||
|
from llmusage a, llm b
|
||||||
|
where userorgid = ${userorgid}$
|
||||||
|
and a.llmid = b.id
|
||||||
|
"""
|
||||||
ns = dict(
|
ns = dict(
|
||||||
page=page,
|
page=page,
|
||||||
pagerows=pagerows,
|
pagerows=pagerows,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user