summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-03 03:41:17 +0200
committerThanos Apollo <[email protected]>2024-03-03 03:41:17 +0200
commitdb5efe66a4be26a017f7676687355f8feeb11e9d (patch)
tree96cda9ae0ad46688ae4be21b7692f2091ece4b78 /gnosis.el
parent983d84f653b88bc833eb80a4c03e3485f18c53d2 (diff)
Add gnosis-get-ef-threshold
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 5 insertions, 0 deletions
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.