summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-15 10:28:49 +0200
committerThanos Apollo <[email protected]>2024-01-15 10:50:37 +0200
commit010d8e688de2199ab6e10b03de64e75b2c0521d9 (patch)
tree14049e94a4d9f8eea8135691e634b8f0847c790c
parentf900b02d4e3760f16cb2189138def13414bd32e6 (diff)
gnosis-algorithm: Fix for first interval
-rw-r--r--gnosis-algorithm.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el
index 4107b8a..2ec859c 100644
--- a/gnosis-algorithm.el
+++ b/gnosis-algorithm.el
@@ -123,13 +123,13 @@ Returns a tuple: (INTERVAL N EF) where,
(interval
(cond
;; First successful review -> first interval
- ((and (= successful-reviews 1)
+ ((and (= successful-reviews 0)
(= success 1)
(< n 10)
(< ef 3.0))
(car gnosis-algorithm-interval))
;; Second successful review -> second interval
- ((and (= successful-reviews 2)
+ ((and (= successful-reviews 1)
(< n 10)
(= success 1)
(< ef 3.0))