summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-27 06:40:20 +0200
committerThanos Apollo <[email protected]>2023-12-27 06:40:20 +0200
commitab26cb8c2c5d26b951fb6a407e4c7e45b4f55e3f (patch)
treeb4b5939d7531a96b5b1c5f2f79f745144462e3c8 /gnosis.el
parentdb95f09fd7d9a3cc1fa260b7167922d3bde5b41a (diff)
[fix] gnosis-review-due-notes fix typo & make sure suspend value 0
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 93e2203..ba46e59 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -266,8 +266,8 @@ Returns a list of the form ((yyyy mm dd) ef)."
Select notes where:
- Next review date <= current date
- Not suspended."
- (emacsql gnosis-db [:select [id] :from review-log :where (and (<= next-rev ',(gnosis-algorithm-date))
- (not suspend))]))
+ (emacsql gnosis-db `[:select [id] :from review-log :where (and (<= next-rev ',(gnosis-algorithm-date))
+ (= suspend 0))]))
(defun gnosis-review--get-offset (id)
"Get offset for note with value of id ID."