summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-10 23:34:39 +0300
committerThanos Apollo <[email protected]>2024-04-10 23:34:39 +0300
commit5040245c0069f400dcfe54bbcfd2a72550bed760 (patch)
treef91769c75fc7da2d1d1272ed872c0c5fafc5c715
parent34bf6748f05551430352a712c05cf74980febc8a (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.el6
1 files 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)