From af86aa3cc9fd9f281461eeeeca685671fb33c868 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 26 Jan 2024 09:55:00 +0200 Subject: gnosis-review-get-due-notes: Use flatten argument --- gnosis.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnosis.el') 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))) -- cgit v1.2.3