diff options
author | Thanos Apollo <[email protected]> | 2023-12-14 20:53:05 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-14 20:53:05 +0200 |
commit | 3648d8b8cae071897c20159b37e1b99791de720d (patch) | |
tree | 6e9a0427233001299e5f9a06540370ff3666f222 | |
parent | b4e76ebbaba226b3df984177139b92185af5bcf4 (diff) |
Update addition of note-mcq type
Add review-log info & date statements
-rw-r--r-- | gnosis.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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." |