修复scalar_one_or_none相关limit
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user