We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a02cf commit e8ef741Copy full SHA for e8ef741
packages/db/src/study/SpacedRepetition.ts
@@ -39,7 +39,7 @@ function newQuestionInterval(user: DocumentUpdater, cardHistory: CardHistory<Que
39
}
40
41
if (currentAttempt.isCorrect) {
42
- const skill = currentAttempt.performance as number;
+ const skill = Math.min(1.0, Math.max(0.0, currentAttempt.performance as number));
43
logger.debug(`Demontrated skill: \t${skill}`);
44
const interval: number = lastInterval * (0.75 + skill);
45
cardHistory.lapses = getLapses(cardHistory.records);
0 commit comments