From 5f875e9db209e7d6c6ff96e38290099c7a9c0445 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 24 Feb 2023 23:28:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E9=97=AA=E5=8D=A1?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=80=E4=B8=AA=E5=9D=97=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E5=A4=9A=E5=BC=A0=E9=97=AA=E5=8D=A1=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7417?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/flashcard.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index 8afc132a4..719812084 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -314,7 +314,6 @@ func getDueFlashcards(deckID string) (ret []*Flashcard) { } func getAllDueFlashcards() (ret []*Flashcard) { - blockIDs := map[string]bool{} now := time.Now() for _, deck := range Decks { cards := deck.Dues() @@ -324,10 +323,6 @@ func getAllDueFlashcards() (ret []*Flashcard) { continue } - if blockIDs[blockID] { - continue - } - nextDues := map[riff.Rating]string{} for rating, due := range card.NextDues() { nextDues[rating] = strings.TrimSpace(util.HumanizeRelTime(due, now, Conf.Lang)) @@ -339,7 +334,6 @@ func getAllDueFlashcards() (ret []*Flashcard) { BlockID: blockID, NextDues: nextDues, }) - blockIDs[blockID] = true } } if 1 > len(ret) {