summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-07 12:30:19 +0300
committerThanos Apollo <[email protected]>2024-08-07 12:30:19 +0300
commit0dbcc95334f8abd810612469577cf40d025b81d1 (patch)
tree900e92774bb6152a398f12b82b430ff1f855e537 /gnosis.el
parent4cb2beac3dd00cc6a6d30214b63ed48e357cb2cc (diff)
get-note-epignosis: 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 a0dce26..58206d3 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2052,7 +2052,7 @@ CUSTOM-VALUES: Specify values for tags."
"Return epignosis value for note ID."
(let* ((deck-epignosis (gnosis-get-note-deck-epignosis id custom-deck custom-values))
(tag-epignosis (gnosis-get-note-tag-epignosis id custom-tags custom-values))
- (note-epignosis (max deck-epignosis tag-epignosis)))
+ (note-epignosis (or tag-epignosis deck-epignosis)))
(if (>= note-epignosis 1)
(error "Epignosis value must be lower than 1")
note-epignosis)))