diff options
author | Thanos Apollo <[email protected]> | 2024-02-28 15:06:47 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-28 15:06:47 +0200 |
commit | 0ab1087c2974788986523f7bc9274bcd526d5d87 (patch) | |
tree | 45e93f1a35ab9f80598e89bd7a3e0b7b41e1460d | |
parent | a90c18fc99db33423dc972ced4e14527e5993da7 (diff) |
Remove gnosis-get-note-tags
Use gnosis-get, avoid extra complexity
-rw-r--r-- | gnosis.el | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -227,10 +227,6 @@ Example: "Return caar of VALUE from TABLE, optionally with where RESTRICTIONS." (caar (gnosis-select value table restrictions))) -(defun gnosis-get-note-tags (id) - "Return tags for note ID." - (gnosis-get 'tags 'notes `(= id ,id))) - (defun gnosis--delete (table value) "From TABLE use where to delete VALUE." (emacsql gnosis-db `[:delete :from ,table :where ,value])) @@ -944,7 +940,7 @@ well." (let ((due-notes (gnosis-review-get-due-notes))) (cl-remove-duplicates (cl-mapcan (lambda (note-id) - (gnosis-get-note-tags note-id)) + (gnosis-get 'tags 'notes `(= id ,note-id))) due-notes) :test #'equal))) |