summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-07 12:27:33 +0300
committerThanos Apollo <[email protected]>2024-08-07 12:27:33 +0300
commit114d92fa7b2713d12b58101dc650d03b95162ce9 (patch)
tree349384c354632d1095cbc9f41d54ea46ac5d92e8 /gnosis.el
parent0c8d6b9c6503505503252cd0cfa1ebb3aacb4d21 (diff)
get-note-tag-amnesia: Return either nil or max amnesia value.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index 2839ff6..753d6e4 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2010,9 +2010,7 @@ amnesia i.e next interval to be 0.
CUSTOM-TAGS: Specify tags for note id.
CUSTOM-VALUES: Specify values for tags."
(let ((amnesia-values (gnosis-get-custom-tag-values id :amnesia custom-tags custom-values)))
- (if amnesia-values
- (apply #'min amnesia-values)
- gnosis-algorithm-amnesia-value)))
+ (and amnesia-values (apply #'max amnesia-values))))
(defun gnosis-get-note-deck-amnesia (id &optional custom-deck custom-values)
"Return tag amnesia for note ID.