管理后台前后端逻辑、UI美化

This commit is contained in:
Cheng Zhou
2026-01-16 13:50:08 +08:00
parent 05c1f9579a
commit 7fdcfdaadd
82 changed files with 3210 additions and 549 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ async def list_notes(
skip: int = 0,
limit: int = 100,
) -> Sequence[KnowledgeNote]:
stmt = select(KnowledgeNote).where(KnowledgeNote.study_id == study_id)
stmt = (
select(KnowledgeNote)
.where(KnowledgeNote.study_id == study_id)
)
if site_name:
stmt = stmt.where(KnowledgeNote.site_name.ilike(f"%{site_name}%"))
if keyword: