Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code https://github.com/siyuan-note/siyuan/pull/9673

Danielafef4926cea9
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 7408be8bcd..9157571e37 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -329,7 +329,7 @@ func getCardsBlocks(cards []riff.Card, page int) (blocks []*Block, total, pageCo
return
}
- // sort by due date asc
+ // sort by due date asc https://github.com/siyuan-note/siyuan/pull/9673
sort.Slice(cards, func(i, j int) bool {
due1 := cards[i].(*riff.FSRSCard).C.Due
due2 := cards[j].(*riff.FSRSCard).C.Due