From 2d7752dfb299e069850a382d115fa65cf5660fbf Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 6 Feb 2024 12:14:55 +0200 Subject: gnosis-algorith: Adjust for second initial interval --- gnosis-algorithm.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gnosis-algorithm.el') diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el index c10d9c9..02b9a87 100644 --- a/gnosis-algorithm.el +++ b/gnosis-algorithm.el @@ -114,8 +114,8 @@ Returns a list of: (INTERVAL N EF) where, - Next review date in (yyyy mm dd) format. - REVIEW-NUM: Incremented by 1. - EF : Modified based on the recall success for the item." - (cl-assert (and (>= success 0) - (<= success 1))) + (cl-assert (or (= success 0) + (= success 1))) ;; Check if gnosis-algorithm-ff is lower than 1 & is total-ef above 1.3 (cond ((>= gnosis-algorithm-ff 1) (error "Value of `gnosis-algorithm-ff' must be lower than 1")) @@ -134,8 +134,7 @@ Returns a list of: (INTERVAL N EF) where, (car initial-interval)) ;; Second successful review -> second interval ((and (= successful-reviews 1) - (= success 1) - (= fails-c 0)) + (= success 1)) (cadr initial-interval)) ;; When successful-reviews-c is above 3, use 150% or 180% ;; of ef depending on the value of successful-reviews -- cgit v1.2.3