🎨 Upgrade flashcard algorithm to FSRSv4 Fix https://github.com/siyuan-note/siyuan/issues/8843

Rating 相关问题 https://github.com/siyuan-note/riff/issues/2
This commit is contained in:
Daniel 2023-07-28 18:52:45 +08:00
parent fb9856f073
commit 36fe9e116e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -349,7 +349,7 @@ export const bindCardEvent = (options: {
} }
return; return;
} }
if (["0", "1", "2", "3", "-3"].includes(type) && actionElements[0].classList.contains("fn__none")) { if (["1", "2", "3", "4", "-3"].includes(type) && actionElements[0].classList.contains("fn__none")) {
fetchPost(type === "-3" ? "/api/riff/skipReviewRiffCard" : "/api/riff/reviewRiffCard", { fetchPost(type === "-3" ? "/api/riff/skipReviewRiffCard" : "/api/riff/reviewRiffCard", {
deckID: options.blocks[index].deckID, deckID: options.blocks[index].deckID,
cardID: options.blocks[index].cardID, cardID: options.blocks[index].cardID,