From 3432320112deac335a750a488b417994ae3c50d2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 27 Jan 2023 11:43:56 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=97=AA=E5=8D=A1=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E7=9A=84=E4=B8=8B=E4=B8=80=E9=A1=B5=E5=8F=AF=E4=BB=A5=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E7=82=B9=E5=87=BB=20https://github.com/siyuan-note/si?= =?UTF-8?q?yuan/issues/7173?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/flashcard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index bd83bead1..a2cbc7497 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -58,7 +58,7 @@ func GetFlashcards(deckID string, page int) (blocks []*Block, total, pageCount i start := (page - 1) * pageSize end := page * pageSize if start > len(allBlockIDs) { - return + start = len(allBlockIDs) } if end > len(allBlockIDs) { end = len(allBlockIDs)