summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-18 02:54:53 +0200
committerThanos Apollo <[email protected]>2023-12-18 02:54:53 +0200
commit1e1e7cbb7cf0d558421624c5d8ff5fbffa7e2aff (patch)
tree23562e4d6d1d57e8a9466b11f660180fdc635d4d
parentdd3759f27e66b03144807e6d2d937928b0c18b32 (diff)
Add gnosis-review--get-due-notes
-rw-r--r--gnosis.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 77bbae3..943eff5 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -155,6 +155,10 @@ TAGS are used to organize questions."
(history-add-new-input nil)) ;; Disable history
(completing-read "Answer: " choices)))
+(defun gnosis-review--get-due-notes ()
+ "Get due notes for current date."
+ (gnosis--select 'id 'review-log `(<= next-rev ',(gnosis-algorithm-date))))
+
(defun gnosis-review-mcq-choices (id)
"Display multiple choice answers for question ID."
(let ((answer (gnosis-get 'answer 'notes `(= id ,id)))