🎨 Improve the initialization interface to select the workspace cloud disk path prompt Fix https://github.com/siyuan-note/siyuan/issues/7975

This commit is contained in:
Liang Ding 2023-04-13 10:09:50 +08:00
parent e9f3bdc476
commit 099b784ea0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 7 additions and 3 deletions

View file

@ -818,6 +818,12 @@ func getDeckDueCards(deck *riff.Deck, reviewedCardIDs, blockIDs []string) (ret [
}
dues = tmp
if 1 > len(reviewedCardIDs) {
// 未传入已复习的卡片 ID说明是开始新的复习需要清空缓存
reviewCardCache = map[string]riff.Card{}
skipCardCache = map[string]riff.Card{}
}
newCount := 0
reviewCount := 0
for _, c := range dues {