feat/enh: kb file pagination

This commit is contained in:
Timothy Jaeryang Baek
2025-12-10 00:53:41 -05:00
parent 7b0b16ebbd
commit 94a8439105
9 changed files with 602 additions and 319 deletions

View File

@@ -302,9 +302,6 @@ class NoteTable:
else:
query = query.order_by(Note.updated_at.desc())
for key, value in filter.items():
query = query.filter(getattr(Note, key).ilike(f"%{value}%"))
# Count BEFORE pagination
total = query.count()