bugfix
This commit is contained in:
parent
a4856cef48
commit
95cfd95d46
@ -7,12 +7,12 @@ if not ns.use_date:
|
|||||||
ns.use_date = curDateString()
|
ns.use_date = curDateString()
|
||||||
|
|
||||||
async with get_sor_context(request._run_ns, 'llmage') as sor:
|
async with get_sor_context(request._run_ns, 'llmage') as sor:
|
||||||
sql = """select a.id, a.llmid, a.usage, b.name, b.ppid
|
sql = """select a.id, a.llmid, a.usage, b.name, b.model, b.ppid
|
||||||
from llmusage a, llm b
|
from llmusage a, llm b
|
||||||
where a.llmid = b.id
|
where a.llmid = b.id
|
||||||
and use_date=${use_date}$
|
and use_date=${use_date}$
|
||||||
"""
|
"""
|
||||||
d = await sor.R('llmusage', ns)
|
d = await sor.sqlExe(sql, ns)
|
||||||
for r in d['rows']:
|
for r in d['rows']:
|
||||||
if r.ppid:
|
if r.ppid:
|
||||||
r.amount = await pricing_program_charging(sor, r.ppid, r.usage)
|
r.amount = await pricing_program_charging(sor, r.ppid, r.usage)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user