diff options
author | Thanos Apollo <[email protected]> | 2024-08-07 12:28:11 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-07 12:28:11 +0300 |
commit | 4874af540435aa2a1a6bbeb80a1fe7127a1f748e (patch) | |
tree | 37f2cbcf89a53c3a4c09e53239a92293e9a008ad | |
parent | 114d92fa7b2713d12b58101dc650d03b95162ce9 (diff) |
get-note-amnesia: Prioritize tags value over deck.
* Only return deck value if tags value is nil.
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))) |