diff options
author | Thanos Apollo <[email protected]> | 2023-12-19 20:26:06 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-19 20:26:06 +0200 |
commit | 8bffbbcf0803717b4c5e9044fbce9cd7af043d5c (patch) | |
tree | 57658bcede607f81882f7b3469e999b50be2351d /gnosis.el | |
parent | 5034063ffa17f795ed35bfdacc8a484506c7b4f7 (diff) |
Add gnosis-review-update--last-rev
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))) |