From db5efe66a4be26a017f7676687355f8feeb11e9d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 3 Mar 2024 03:41:17 +0200 Subject: Add gnosis-get-ef-threshold --- gnosis.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnosis.el b/gnosis.el index 90adb10..3a74160 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1361,6 +1361,11 @@ SECOND-IMAGE: Image to display after user-input" (let ((ef-decrease (gnosis-get 'ef-decrease 'decks `(= id ,(gnosis-get 'deck-id 'notes `(= id ,id)))))) (or ef-decrease gnosis-algorithm-ef-decrease))) +(defun gnosis-get-ef-threshold (id) + "Return ef-threshold for note with value of id ID." + (let ((ef-threshold (gnosis-get 'ef-threshold 'decks `(= id ,(gnosis-get 'deck-id 'notes `(= id ,id)))))) + (or ef-threshold gnosis-algorithm-ef-threshold))) + (cl-defun gnosis-export-note (id &optional (export-for-deck nil)) "Export fields for note with value of id ID. -- cgit v1.2.3