diff options
author | Thanos Apollo <[email protected]> | 2023-12-28 07:38:11 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-28 07:38:11 +0200 |
commit | eb25fa1a21e193173d2512777b002d06d4ab2cb9 (patch) | |
tree | adc372fb7bbff5614bc00e41f7facb5d28fa37b2 /gnosis.el | |
parent | aad4749efceb9c9b9cdfe1a13ded56c4063b1f07 (diff) |
gnosis-select-by-tag: Update error checking
error if not listp input-tags
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -391,6 +391,8 @@ Compare 2 strings, ignoring case and whitespace." (defun gnosis-select-by-tag (input-tags) "Return note id for every note with INPUT-TAGS." + (unless (listp input-tags) + (error "`input-tags' need to be a list")) (cl-loop for (id tags) in (emacsql gnosis-db [:select [id tags] :from notes]) when (cl-every (lambda (tag) (member tag tags)) input-tags) collect id)) |