diff options
author | Thanos Apollo <[email protected]> | 2024-05-27 06:01:42 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-05-27 06:13:06 +0300 |
commit | 9b8b9704b7ae1bf4aa15ae0121fe79fa9a743316 (patch) | |
tree | 61a32d6d8fc0fd6ec5c0b921e6bc1b4c49614226 /gnosis.el | |
parent | e9852b4532d9bd3a10b437e957eb6747c2592004 (diff) |
[fix] gnosis-review-last-interval: Minimum value to return is 1
Returning 0 would break algorithm implementation
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1127,7 +1127,7 @@ well." (let* ((where-id-clause `(= id ,id)) (last-rev (gnosis-get 'last-rev 'review-log where-id-clause)) (rev-date (gnosis-get 'next-rev 'review-log where-id-clause))) - (gnosis-algorithm-date-diff last-rev rev-date))) + (max (gnosis-algorithm-date-diff last-rev rev-date) 1))) (defun gnosis-review-algorithm (id success) "Return next review date & ef for note with value of id ID. |