summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-02 19:27:01 +0300
committerThanos Apollo <[email protected]>2024-04-02 19:27:01 +0300
commit40c5859332ac0a413ccaf3d074cf592148a034c4 (patch)
tree85890110d6f4fc9f15cc07b4a2b65b29bedabbad
parent9b079a48eeda16d29eb937e2dd4905a20ec0ec42 (diff)
gnosis-review: Use gnosis-collect-note-ids
-rw-r--r--gnosis.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/gnosis.el b/gnosis.el
index 3c627a8..fed4b0e 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1513,11 +1513,10 @@ to improve readability."
"Due notes of specified tag(s)"
"All notes of tag(s)"))))
(pcase review-type
- ("Due notes" (gnosis-review--session (gnosis-review-get-due-notes)))
- ("Due notes of deck" (gnosis-review--session (gnosis-get-deck-notes nil t)))
- ("Due notes of specified tag(s)" (gnosis-review--session
- (gnosis-select-by-tag (gnosis-tag-prompt :due t))))
- ("All notes of tag(s)" (gnosis-review--session (gnosis-select-by-tag (gnosis-tag-prompt)))))))
+ ("Due notes" (gnosis-review--session (gnosis-collect-note-ids :due t)))
+ ("Due notes of deck" (gnosis-review--session (gnosis-collect-note-ids :due t :deck t)))
+ ("Due notes of specified tag(s)" (gnosis-review--session (gnosis-collect-note-ids :due t :tags t)))
+ ("All notes of tag(s)" (gnosis-review--session (gnosis-collect-note-ids :tags t))))))
;;; Database Schemas
(defvar gnosis-db-schema-decks '([(id integer :primary-key :autoincrement)