summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-16 12:51:55 +0200
committerThanos Apollo <[email protected]>2024-01-16 12:51:55 +0200
commit124131aa878b8a78e1da4b1eb386807baf9a96ea (patch)
treea0378fc9ff7642ce3c3913332f3adef696c41ab9
parentd16380139264aad7ef59438399a6a2b9d37015ac (diff)
gnosis: Update docstrings & Add review schema comments
-rw-r--r--gnosis.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index 5a288ea..752d828 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -150,7 +150,7 @@ Use `gnosis-db-init' to initialize `gnosis-db' and create essential directories.
(emacsql gnosis-db `[:create-table ,table ,values]))
(cl-defun gnosis--drop-table (table)
- "Drop TABLE from gnosis-db."
+ "Drop TABLE from `gnosis-db'."
(emacsql gnosis-db `[:drop-table ,table]))
(cl-defun gnosis--insert-into (table values)
@@ -759,7 +759,7 @@ Optionally, add cusotm PROMPT."
image))
(defun gnosis-get-tags--unique ()
- "Return a list of unique strings for tags in gnosis-db."
+ "Return a list of unique strings for tags in `gnosis-db'."
(cl-loop for tags in (apply #'append (gnosis-select 'tags 'notes))
nconc tags into all-tags
finally return (delete-dups all-tags)))
@@ -1347,7 +1347,7 @@ review."
(defvar gnosis-db-schema-review '([(id integer :primary-key :not-null) ;; note-id
(ef integer :not-null) ;; Easiness factor
(ff integer :not-null) ;; Forgetting factor
- (interval integer :not-null)] ;; Interval
+ (interval integer :not-null)] ;; Initial Interval
(:foreign-key [id] :references notes [id]
:on-delete :cascade)))