feat(shelf): 新增书架分页展示与排序选择

This commit is contained in:
admin committed 2026-09-21 22:25:11 +08:00
1 parent bbed5a5b98
commit 40b00a8b40
7 files changed
+92 -8

No files matched your search

+3
View File
@@ -364,6 +364,7 @@ def make_book(
author=None,
category=None,
finish=0,
is_top=0,
read_update_time=0,
cover_url=None,
deep_link=None,
@@ -401,6 +402,7 @@ def make_book(
"read_time_str": duration_str(read_time) if read_time else "",
"read_update_time": ts_to_date(read_update_time),
"finish_reading": finish,
"is_top": int(is_top or 0),
"deep_link": deep_link or "",
}
@@ -589,6 +591,7 @@ def shelf_books(conn, with_progress=False, progress_limit=30):
row.get("author"),
row.get("category"),
finish=row.get("finishReading"),
is_top=row.get("isTop"),
read_update_time=row.get("readUpdateTime"),
cover_url=row.get("cover"),
deep_link=row.get("deepLink"),