summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-07 12:28:11 +0300
committerThanos Apollo <[email protected]>2024-08-07 12:28:11 +0300
commit4874af540435aa2a1a6bbeb80a1fe7127a1f748e (patch)
tree37f2cbcf89a53c3a4c09e53239a92293e9a008ad /gnosis.el
parent114d92fa7b2713d12b58101dc650d03b95162ce9 (diff)
get-note-amnesia: Prioritize tags value over deck.
* Only return deck value if tags value is nil.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 753d6e4..366305d 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2029,7 +2029,7 @@ CUSTOM-TAGS: Specify tags for note id.
CUSTOM-VALUES: Specify values for tags."
(let* ((deck-amnesia (gnosis-get-note-deck-amnesia id custom-deck custom-values))
(tags-amnesia (gnosis-get-note-tag-amnesia id custom-tags custom-values))
- (note-amnesia (min deck-amnesia tags-amnesia)))
+ (note-amnesia (or tags-amnesia deck-amnesia)))
(if (>= note-amnesia 1)
(error "Amnesia value must be lower than 1")
note-amnesia)))