From c96680fae8ab06b2a535c5e367683589a7ab2ec4 Mon Sep 17 00:00:00 2001 From: lychang Date: Mon, 20 Jul 2026 02:17:11 +0800 Subject: [PATCH] update --- src/engine/tag_dict.rs | 2 ++ src/routes/person.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/tag_dict.rs b/src/engine/tag_dict.rs index b7aa1b1..6caf328 100644 --- a/src/engine/tag_dict.rs +++ b/src/engine/tag_dict.rs @@ -73,6 +73,8 @@ impl Default for TagDict { categories: HashMap::new(), tag_to_category: HashMap::new(), stop_words: HashSet::new(), + person_prefixes: Vec::new(), + excluded_person_names: HashSet::new(), }; // 内建回退:即使 JSON 文件不存在也能工作 dict.fill_builtin(); diff --git a/src/routes/person.rs b/src/routes/person.rs index 7a7876f..d8a0e17 100644 --- a/src/routes/person.rs +++ b/src/routes/person.rs @@ -5,7 +5,6 @@ use actix_web::{HttpResponse, Responder, web}; use std::collections::HashMap; use std::sync::Arc; use tokio::sync::RwLock; -use uuid::Uuid; /// GET /api/people — 从缓存获取所有人名列表 pub async fn get_people(cache: web::Data>>) -> impl Responder {