branch: elpa/gnosis
commit cd9817a14416bd2158c873d31764772fe9417387
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
[fix] algorithm: properly calculate anagnosis event.
* Previous implementation would trigger the event one review later.
---
gnosis-review.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnosis-review.el b/gnosis-review.el
index 304eabe145..99e68cedf7 100644
--- a/gnosis-review.el
+++ b/gnosis-review.el
@@ -299,8 +299,8 @@ Returns a list of the form ((yyyy mm dd) (ef-increase
ef-decrease ef-total))."
:epignosis (gnosis-get-thema-epignosis id)
:agnoia (gnosis-get-thema-agnoia id)
:anagnosis (gnosis-get-thema-anagnosis id)
- :c-successes c-success
- :c-failures c-fails
+ :c-successes (if success (1+ c-success) 0)
+ :c-failures (if success 0 (1+ c-fails))
:lethe lethe))))
(defun gnosis-review--update (id success)