diff options
author | Thanos Apollo <[email protected]> | 2024-03-03 03:41:17 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-03 03:41:17 +0200 |
commit | db5efe66a4be26a017f7676687355f8feeb11e9d (patch) | |
tree | 96cda9ae0ad46688ae4be21b7692f2091ece4b78 /gnosis.el | |
parent | 983d84f653b88bc833eb80a4c03e3485f18c53d2 (diff) |
Add gnosis-get-ef-threshold
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |