diff options
author | Thanos Apollo <[email protected]> | 2024-08-06 23:57:48 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-06 23:58:09 +0300 |
commit | 1bb2e3bdc17dca1206910ca997a1650a731c1f7d (patch) | |
tree | 6d33d2900b059700178bddbb6f9a884e708eb3a5 | |
parent | 762cbc5d944ad3dc6528108fb1e9937f0b8f8c90 (diff) |
New function: get-note-deck-amnesia
* Return amnesia value for note's deck.
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. |