diff options
author | Thanos Apollo <[email protected]> | 2024-01-18 04:11:44 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-01-18 04:11:44 +0200 |
commit | 5fcd13b74a7e40be8ef3f53f1f33824e9b59b814 (patch) | |
tree | 435ab13f748df14c46b76f761a35135889dc6a4b | |
parent | ada654d65cf867f37fd8a3e8ddf4160a04a69682 (diff) |
gnosis-algorithm-next-interval: Always pass last-interval >=1
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -849,7 +849,7 @@ Returns a list of the form ((yyyy mm dd) ef)." (c-fails (gnosis-get 'c-fails 'review-log `(= id ,id))) (t-fails (gnosis-get 't-fails 'review-log `(= id ,id))) (initial-interval (gnosis-get 'interval 'review `(= id ,id)))) - (gnosis-algorithm-next-interval :last-interval (gnosis-review--get-offset id) + (gnosis-algorithm-next-interval :last-interval (max (gnosis-review--get-offset id) 1) ;; last-interv always >=1 :review-num (gnosis-get 'n 'review-log `(= id ,id)) :ef ef :success success |