diff options
author | Thanos Apollo <[email protected]> | 2023-12-19 20:22:59 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-19 20:22:59 +0200 |
commit | 5034063ffa17f795ed35bfdacc8a484506c7b4f7 (patch) | |
tree | fd401e009fbd18d80dcdf2166a5f82b72b6e02cd /gnosis.el | |
parent | 33075f7f7cddfdf5c3fc9f1d198322a0ca3e8dbe (diff) |
Add gnosis-review--success
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -190,6 +190,14 @@ SUCCESS is a binary value, 1 = success, 0 = failure." (if (equal success 1) (nth 0 ef) (nth 1 ef)))) + +(defun gnosis-review--success (id) + "Update review-log for note with value of id ID." + (let ((ef (gnosis-review--new-ef id 1))) + ;; (gnosis-update 'review-log `(= last-rev ',(gnosis-algorithm-date)) `(= id ,id)) + (gnosis-update 'review-log `(= next-rev ',(car (gnosis-review--algorithm id 1))) `(= id ,id)) + (gnosis-update 'review `(= ef ,ef) `(= id ,id)))) + (defun gnosis-review-mcq-choices (id) "Display multiple choice answers for question ID." (let ((answer (gnosis-get 'answer 'notes `(= id ,id))) |