diff options
author | Thanos Apollo <[email protected]> | 2023-12-19 20:20:39 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-19 20:20:39 +0200 |
commit | 345748cf07f13f0f489edec5d3a9d6b69288ee6b (patch) | |
tree | 074f862fd90e5ae486269c3730898fcd9fd39679 /gnosis.el | |
parent | 13837a97f9b4ed2afbf1c01d9f9f66387df93d78 (diff) |
Update addition of notes for new schemas
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -139,13 +139,13 @@ TAGS are used to organize questions." (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)))) - (date (gnosis-date-current))) - (gnosis--insert-into 'review `([,note-id ,gnosis-ef ,gnosis-ff 0 0])) - (gnosis--insert-into 'review-log `([,note-id 0 ,date 0 0])))) + (date (gnosis-algorithm-date))) + (gnosis--insert-into 'review `([,note-id ,gnosis-algorithm-ef ,gnosis-algorithm-ff ,gnosis-algorithm-interval])) + (gnosis--insert-into 'review-log `([,note-id ,date ,date 0 0 0])))) (defun gnosis-add-note (type) "Create note as TYPE." - (interactive (list (completing-read "Type: " '(MCQ Cloze Basic)))) + (interactive (list (completing-read "Type: " '(MCQ Cloze Basic) nil t))) (pcase type ("MCQ" (call-interactively 'gnosis-add-note-mcq)) ("Cloze" (message "Not ready yet.")) |