diff options
author | Thanos Apollo <[email protected]> | 2023-12-19 20:21:44 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-19 20:21:44 +0200 |
commit | 6813a8c62d75f0c70d11ed84fdf7a15fed22937e (patch) | |
tree | d504492f4226c0d9fd67560353af0d715e1255bb | |
parent | 55387b522303d8d2243c83be90cda2d7b7ef36b6 (diff) |
Add gnosis-review--get-offset
-rw-r--r-- | gnosis.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -176,6 +176,11 @@ Returns a list of the form ((yyyy mm dd) ef)." "Get due notes for current date." (gnosis--select 'id 'review-log `(<= next-rev ',(gnosis-algorithm-date)))) +(defun gnosis-review--get-offset (id) + "Get offset for note with value of id ID." + (let ((last-rev (gnosis-get 'last-rev 'review-log `(= id ,id)))) + (gnosis-algorithm-date-diff last-rev))) + (defun gnosis-review-mcq-choices (id) "Display multiple choice answers for question ID." (let ((answer (gnosis-get 'answer 'notes `(= id ,id))) |