diff options
author | Thanos Apollo <[email protected]> | 2024-08-07 12:30:19 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-07 12:30:19 +0300 |
commit | 0dbcc95334f8abd810612469577cf40d025b81d1 (patch) | |
tree | 900e92774bb6152a398f12b82b430ff1f855e537 /gnosis.el | |
parent | 4cb2beac3dd00cc6a6d30214b63ed48e357cb2cc (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.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))) |