summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-05-10 14:04:18 +0300
committerThanos Apollo <[email protected]>2024-05-10 14:04:18 +0300
commitdd8eb64aef4e070ec500989587aed850e8e2534a (patch)
tree6186977f3de3796e4b7016e6691630eb841463e0 /gnosis.el
parent28a1c9f1680320cf22356f71db113b0d7ebc4623 (diff)
[fix] gnosis-review-algorithm: Adjust ff & last-interval
Use gnosis-get-note-ff & gnosis-review-last-interval Previous implementation would not respect note's ff or deck's ff
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index b32fced..5ce56d4 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1119,14 +1119,15 @@ well."
SUCCESS is a boolean value, t for success, nil for failure.
Returns a list of the form ((yyyy mm dd) (ef-increase ef-decrease ef-total))."
- (let ((ff gnosis-algorithm-ff)
+ (let ((ff (gnosis-get-note-ff id))
(ef (gnosis-get 'ef 'review `(= id ,id)))
(t-success (gnosis-get 't-success 'review-log `(= id ,id))) ;; total successful reviews
(c-success (gnosis-get 'c-success 'review-log `(= id ,id))) ;; consecutive successful reviews
(c-fails (gnosis-get 'c-fails 'review-log `(= id ,id))) ;; consecutive failed reviews
;; (t-fails (gnosis-get 't-fails 'review-log `(= id ,id))) ;; total failed reviews
;; (review-num (gnosis-get 'n 'review-log `(= id ,id))) ;; total reviews
- (last-interval (max (gnosis-review--get-offset id) 1))) ;; last interval
+ ;; (last-interval (max (gnosis-review--get-offset id) 1))
+ (last-interval (gnosis-review-last-interval id))) ;; last interval
(list (gnosis-algorithm-next-interval :last-interval last-interval
:ef ef
:success success