diff options
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -198,6 +198,13 @@ SUCCESS is a binary value, 1 = success, 0 = failure." (gnosis-update 'review-log `(= next-rev ',(car (gnosis-review--algorithm id 1))) `(= id ,id)) (gnosis-update 'review `(= ef ,ef) `(= id ,id)))) +(cl-defun gnosis-review-update--last-rev (id) + "Update last-rev, from review-log, for note with value of id ID. + +Change last-rev to current date." + (let ((date (gnosis-algorithm-date))) + (gnosis-update 'review-log `(= last-rev ',date) `(= id ,id)))) + (defun gnosis-review-mcq-choices (id) "Display multiple choice answers for question ID." (let ((answer (gnosis-get 'answer 'notes `(= id ,id))) |