From aa50cb27899a11afb1b6d1359bbf3f158a558a97 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 8 Mar 2024 08:24:26 +0200 Subject: Add gnosis-get-note-initial-interval --- gnosis.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnosis.el b/gnosis.el index 4d558aa..17dfb59 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1449,6 +1449,11 @@ SUSPEND: Suspend note, 0 for unsuspend, 1 for suspend" (let ((initial-interval (gnosis-get 'initial-interval 'decks `(= id ,id)))) (or initial-interval gnosis-algorithm-interval))) +(defun gnosis-get-note-initial-interval (id) + "Return initial-interval for note with ID." + (let ((deck-id (gnosis-get 'deck-id 'notes `(= id ,id)))) + (gnosis-get-deck-initial-interval deck-id))) + (cl-defun gnosis-export-note (id &optional (export-for-deck nil)) "Export fields for note with value of id ID. -- cgit v1.2.3