修复scalar_one_or_none相关limit

This commit is contained in:
2026-06-03 14:15:21 +08:00
parent 446450c7d2
commit 8f27794da6
24 changed files with 73 additions and 52 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ async def _call_openai_compatible(
if industry_key and db is not None:
from app.models.industry_config import IndustryConfig
result = await db.execute(
select(IndustryConfig).where(IndustryConfig.key == industry_key)
select(IndustryConfig).where(IndustryConfig.key == industry_key).limit(1)
)
ind = result.scalar_one_or_none()
if ind and ind.skills: