summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-06 23:57:48 +0300
committerThanos Apollo <[email protected]>2024-08-06 23:58:09 +0300
commit1bb2e3bdc17dca1206910ca997a1650a731c1f7d (patch)
tree6d33d2900b059700178bddbb6f9a884e708eb3a5 /gnosis.el
parent762cbc5d944ad3dc6528108fb1e9937f0b8f8c90 (diff)
New function: get-note-deck-amnesia
* Return amnesia value for note's deck.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index b0a9714..9ef0ab5 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2017,6 +2017,14 @@ CUSTOM-VALUES: Specify values for tags."
(apply #'min amnesia-values)
gnosis-algorithm-amnesia-value)))
+(defun gnosis-get-note-deck-amnesia (id &optional custom-deck custom-values)
+ "Return tag amnesia for note ID.
+
+Optionally, use CUSTOM-DECK and CUSTOM-VALUES."
+ (let ((deck (or (gnosis-get-note-deck-name id) custom-deck )))
+ (or (gnosis-get-custom-deck-value deck :amnesia custom-values)
+ gnosis-algorithm-amnesia-value)))
+
(defun gnosis-get-date-total-notes (&optional date)
"Return total notes reviewed for DATE.