From 15a5e1d362749bb998556a217f55e8fca981186f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 22 May 2026 13:34:24 +0800 Subject: [PATCH] buggix --- llmage/accounting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index 3cf0cb7..edcb279 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -70,7 +70,11 @@ async def llm_accounting(llmusage): env = ServerEnv() llmid = llmusage.llmid async with get_sor_context(env, 'llmage') as sor: - sql = "select * from llm where id=${llmid}$" + sql = """select a.*, b.ppid from llm a, llm_api_map b +where id=${llmid}$ + and a.id = b.llmid + and b.isdefaultcatelog is '1' +""" recs = await sor.sqlExe(sql, {'llmid': llmusage.llmid}) if len(recs) == 0: ns = {