refactor: 清理冗余代码和过时配置

This commit is contained in:
2026-06-14 12:56:02 +08:00
parent 90fe705e8f
commit 8f13c31991
8 changed files with 4 additions and 220 deletions
-16
View File
@@ -24,22 +24,6 @@ from app.utils import TMP_DIR, truncate_error, utc_now
logger = logging.getLogger(__name__)
# ── FTS5 文本构建 ───────────────────────────────────────────────────────
def _build_fts_summary_text(schema: SummarySchema) -> str:
"""拼接用于 FTS5 索引的总结文本。"""
parts = [
schema.one_line or "",
schema.motivation.problem or "",
schema.motivation.goal or "",
schema.method.overview or "",
schema.method.key_idea or "",
schema.results.main_findings or "",
]
return " ".join(p for p in parts if p)
# ── DB 更新 ─────────────────────────────────────────────────────────────