summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-18 04:11:44 +0200
committerThanos Apollo <[email protected]>2024-01-18 04:11:44 +0200
commit5fcd13b74a7e40be8ef3f53f1f33824e9b59b814 (patch)
tree435ab13f748df14c46b76f761a35135889dc6a4b /gnosis.el
parentada654d65cf867f37fd8a3e8ddf4160a04a69682 (diff)
gnosis-algorithm-next-interval: Always pass last-interval >=1
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 4c04093..7ddeb30 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -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