summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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."