diff options
author | Thanos Apollo <[email protected]> | 2024-03-08 08:24:15 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-08 08:33:09 +0200 |
commit | 44b70113293b5c14c023672ae4d71c1f35bddcb6 (patch) | |
tree | 462c4bd9c6dbd429c1cac35ba24358505f46f79b | |
parent | 27a5c3fec34f97d9cf1189a848acaf5b2f2d35c1 (diff) |
Add gnosis-get-deck-initial-interval
-rw-r--r-- | gnosis.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1444,6 +1444,11 @@ SUSPEND: Suspend note, 0 for unsuspend, 1 for suspend" (let ((ef-threshold (gnosis-get 'ef-threshold 'decks `(= id ,(gnosis-get 'deck-id 'notes `(= id ,id)))))) (or ef-threshold gnosis-algorithm-ef-threshold))) +(defun gnosis-get-deck-initial-interval (id) + "Return initial-interval for notes of deck ID." + (let ((initial-interval (gnosis-get 'initial-interval 'decks `(= id ,id)))) + (or initial-interval gnosis-algorithm-interval))) + (cl-defun gnosis-export-note (id &optional (export-for-deck nil)) "Export fields for note with value of id ID. |