diff options
author | Thanos Apollo <[email protected]> | 2024-05-10 14:04:18 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-05-10 14:04:18 +0300 |
commit | dd8eb64aef4e070ec500989587aed850e8e2534a (patch) | |
tree | 6186977f3de3796e4b7016e6691630eb841463e0 /gnosis.el | |
parent | 28a1c9f1680320cf22356f71db113b0d7ebc4623 (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.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |