mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
🎈 perf: 优化 WebUI 对话数据库中文历史检索
This commit is contained in:
@@ -491,6 +491,7 @@ class SQLiteDatabase(BaseDatabase):
|
||||
|
||||
# 搜索关键词
|
||||
if search_query:
|
||||
search_query = search_query.encode("unicode_escape").decode("utf-8")
|
||||
where_clauses.append(
|
||||
"(title LIKE ? OR user_id LIKE ? OR cid LIKE ? OR history LIKE ?)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user