This commit is contained in:
lychang
2026-07-20 02:17:11 +08:00
parent be581977f3
commit c96680fae8
2 changed files with 2 additions and 1 deletions

View File

@@ -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();

View File

@@ -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<Arc<RwLock<PersonCache>>>) -> impl Responder {