From 5040245c0069f400dcfe54bbcfd2a72550bed760 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 10 Apr 2024 23:34:39 +0300 Subject: gnosis-display-next-review: Get value using gnosis-algorithm Since we will be displaying next date before we use gnosis-review--update, we will have to calculate the next date before we update note value in db. --- gnosis.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnosis.el b/gnosis.el index e08e93a..6564ba7 100644 --- a/gnosis.el +++ b/gnosis.el @@ -416,9 +416,9 @@ Also see `gnosis-string-edit'." (recursive-edit) string) -(defun gnosis-display-next-review (id) - "Display next interval for note ID." - (let ((interval (gnosis-get 'next-rev 'review-log `(= id ,id)))) +(defun gnosis-display-next-review (id success) + "Display next interval of note ID for SUCCESS." + (let ((interval (car (gnosis-review-algorithm id success)))) (goto-char (point-max)) (insert "\n\n" (propertize "Next review:" 'face 'gnosis-face-directions) -- cgit v1.2.3