fix(analysis): list_tender_files补resolve_project_id归一——分析角色传项目名当id查空误判无招标文件(中电新项目实测全维度跑空根因)
This commit is contained in:
parent
0179291528
commit
41d55b5d39
@ -148,6 +148,13 @@ __CONTENT__
|
||||
|
||||
async def list_tender_files(project_id, extract_status=""):
|
||||
"""列出项目的招标文件。"""
|
||||
try:
|
||||
project_id = await resolve_project_id(project_id)
|
||||
except ValueError as e:
|
||||
# 2026-09-04:与 list_scoring_items 同款——静默返空会让分析角色误判
|
||||
# 「无招标文件」而阻塞(实测中电新项目:LLM 传项目名当 id,查空 →
|
||||
# 全维度首跑跑空)。明确报错指引补真实 project_id。
|
||||
return "ERROR: 项目上下文缺失(%s)。请显式传 project_id 后重试。" % e
|
||||
db, dbname = get_db()
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
sql = ("SELECT id, file_name, file_type, extract_status, file_size, file_path "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user