diff options
author | Thanos Apollo <[email protected]> | 2024-04-10 23:34:39 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-10 23:34:39 +0300 |
commit | 5040245c0069f400dcfe54bbcfd2a72550bed760 (patch) | |
tree | f91769c75fc7da2d1d1272ed872c0c5fafc5c715 | |
parent | 34bf6748f05551430352a712c05cf74980febc8a (diff) |
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.
-rw-r--r-- | gnosis.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |