summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon <gh@leonrische.me>2022-09-18 14:04:31 +0200
committerGitHub <noreply@github.com>2022-09-18 14:04:31 +0200
commit54975344188ed0e3d0a4b701778165d424012668 (patch)
treedd38ceaa7b7d361d2ca1256786f60a2414b98d31
parentf64b5336485a42be91cfe77850c02a41575f5984 (diff)
parent5ba4cda8610dd948bfe61a8f36dd46440cb586a9 (diff)
Merge pull request #81 from cashweaver/nit
Avoid magic numbers when initializing cards
-rw-r--r--org-fc-algo-sm2.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/org-fc-algo-sm2.el b/org-fc-algo-sm2.el
index 3ed01dd..62199f9 100644
--- a/org-fc-algo-sm2.el
+++ b/org-fc-algo-sm2.el
@@ -165,8 +165,11 @@ EASE, BOX and INTERVAL are the current parameters of the card."
(defun org-fc-algo-sm2-initial-review-data (position)
"Initial SM2 review data for POSITION."
- (list position (org-fc-algo-sm2-ease-initial) 0 0
- (org-fc-timestamp-in 0)))
+ (let* ((box 0)
+ (ease (org-fc-algo-sm2-ease-initial))
+ (interval 0)
+ (due (org-fc-timestamp-in interval)))
+ (list position ease box interval due)))
;;; Footer