summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-14 20:53:05 +0200
committerThanos Apollo <[email protected]>2023-12-14 20:53:05 +0200
commit3648d8b8cae071897c20159b37e1b99791de720d (patch)
tree6e9a0427233001299e5f9a06540370ff3666f222 /gnosis.el
parentb4e76ebbaba226b3df984177139b92185af5bcf4 (diff)
Update addition of note-mcq type
Add review-log info & date statements
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 214ecf7..2a71646 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -158,8 +158,10 @@ TAGS are used to organize questions."
(error "The correct answer must be the number of the correct answer"))
(gnosis--insert-into 'notes `([nil "mcq" ,question ,choices ,correct-answer ,tags ,deck]))
;; Get last inserted note-id
- (let ((note-id (caar (last (gnosis--select 'id 'notes)))))
- (gnosis--insert-into 'review `([,note-id ,gnosis-ef ,gnosis-ff 0 0 0]))))
+ (let* ((note-id (caar (last (gnosis--select 'id 'notes))))
+ (date (gnosis-current-date)))
+ (gnosis--insert-into 'review `([,note-id ,gnosis-ef ,gnosis-ff 0 0]))
+ (gnosis--insert-into 'review-log `([,note-id 0 ,date 0]))))
(defun gnosis-add-note (type)
"Create note as TYPE."