summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-23 18:42:28 +0300
committerThanos Apollo <[email protected]>2024-07-23 18:42:28 +0300
commit538a7d3a500a9a4757e44f086d225a289eb5537d (patch)
treec47f0127976cea84714427e38f3ee2982949a556 /gnosis.el
parentb0eafe453cab365d1d3d5d534289eba9bfd2b46c (diff)
New function: review-is-note-new-p
* Check if note ID is a new note.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 1435a3b..d3673bd 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1614,6 +1614,11 @@ If user-input is equal to CLOZE, return t."
(gnosis-display-next-review id success)
success))
+(defun gnosis-review-is-note-new-p (id)
+ "Return t if note with ID is new."
+ (let ((reviews (car (gnosis-select-id 'n 'review-log id))))
+ (not (> reviews 0))))
+
(defun gnosis-review-increment-activity-log (new? &optional date)
"Increament activity log for DATE by one.