From 747922756245fa05d6a6506711c46952a86e533d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 27 May 2024 06:01:42 +0300 Subject: [fix] gnosis-review-last-interval: Minimum value to return is 1 Returning 0 would break algorithm implementation --- gnosis.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnosis.el b/gnosis.el index 712a427..5d4178c 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1142,7 +1142,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. -- cgit v1.2.3