diff options
author | Thanos Apollo <[email protected]> | 2023-12-25 18:00:23 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-25 18:00:23 +0200 |
commit | 3102de141e433729ae330d1ca5b6f8e7cab5439e (patch) | |
tree | 97ee3793daae3a6dc0c4c39a18f75e9a770767b3 | |
parent | 45aaf268c84c2f0af030485d9572883abbd5dc91 (diff) |
gnosis-review-get-due-notes: Update to not include suspended notes
-rw-r--r-- | gnosis.el | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -225,8 +225,13 @@ Returns a list of the form ((yyyy mm dd) ef)." ff))) (defun gnosis-review-get-due-notes () - "Get due notes for current date." - (gnosis--select 'id 'review-log `(<= next-rev ',(gnosis-algorithm-date)))) + "Get due notes id for current date. + +Select notes where: + - Next review schedulated date <= current date + - Not suspended." + (emacsql gnosis-db [:select [id] :from review-log :where (and (<= next-rev ',(gnosis-algorithm-date)) + (not suspend))])) (defun gnosis-review--get-offset (id) "Get offset for note with value of id ID." |