按批次轮次和问题筛选展示笔记
This commit is contained in:
@@ -201,13 +201,15 @@ def list_evidences(params: dict[str, Any]) -> dict[str, Any]:
|
||||
return data
|
||||
|
||||
|
||||
def list_configured_notes() -> list[dict[str, Any]]:
|
||||
def list_configured_notes(params: dict[str, Any] | None = None) -> list[dict[str, Any]]:
|
||||
"""读取凭证后台中由用户配置的多篇展示笔记。"""
|
||||
if not Config.EVIDENCE_ADMIN_BASE_URL:
|
||||
return []
|
||||
try:
|
||||
response = SESSION.get(
|
||||
f"{Config.EVIDENCE_ADMIN_BASE_URL}/api/notes",
|
||||
params={key: value for key, value in (params or {}).items()
|
||||
if key in {"batch_key", "collection_key", "question_code"} and value},
|
||||
timeout=min(Config.CRAWLER_TIMEOUT_SECONDS, 15),
|
||||
)
|
||||
response.raise_for_status()
|
||||
|
||||
Reference in New Issue
Block a user