summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-26 09:55:00 +0200
committerThanos Apollo <[email protected]>2024-01-26 09:55:00 +0200
commitaf86aa3cc9fd9f281461eeeeca685671fb33c868 (patch)
treed839ca5f607633421c688858bcf26dc800a6c3cc /gnosis.el
parent2b1e1b80ac6257bda53de5992aca0f3854b3d246 (diff)
gnosis-review-get-due-notes: Use flatten argument
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 d99ae27..2d461c3 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -830,8 +830,8 @@ well."
(defun gnosis-review-get-due-notes ()
"Return a list due notes id for current date."
- (let ((notes (gnosis-select 'id 'notes)))
- (cl-loop for note in (apply #'append notes)
+ (let ((notes (gnosis-select 'id 'notes '1=1 t)))
+ (cl-loop for note in notes
when (gnosis-review-is-due-p note)
collect note)))