summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-07 12:29:06 +0300
committerThanos Apollo <[email protected]>2024-08-07 12:29:06 +0300
commit4cb2beac3dd00cc6a6d30214b63ed48e357cb2cc (patch)
tree61fca32d3573dc45b1cbcddbfb61e469946d64b9 /gnosis.el
parent4874af540435aa2a1a6bbeb80a1fe7127a1f748e (diff)
get-note-tag-epignosis: Return either nil or max epignosis 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 366305d..a0dce26 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2040,9 +2040,7 @@ CUSTOM-VALUES: Specify values for tags."
CUSTOM-TAGS: Specify tags for note id.
CUSTOM-VALUES: Specify values for tags."
(let* ((epignosis-values (gnosis-get-custom-tag-values id :epignosis custom-tags custom-values)))
- (if epignosis-values
- (apply #'max epignosis-values)
- gnosis-algorithm-epignosis-value)))
+ (and epignosis-values (apply #'max epignosis-values))))
(defun gnosis-get-note-deck-epignosis (id &optional custom-deck custom-values)
"Return deck epignosis for note ID."