summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-20 03:00:57 +0200
committerThanos Apollo <[email protected]>2024-02-20 03:00:57 +0200
commite2b4fa8546567b185c625bf213a8c64f135780de (patch)
tree58fef7b9e87cb1f159967cbaad7c7623592a2456 /gnosis.el
parent4045f9554d874083d6771647f18ec46eaee92ac1 (diff)
gnosis-update-note: Add ef & ff
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 62f19c4..d982e04 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1141,7 +1141,8 @@ changes."
:keymap gnosis-edit-mode-map)
-(cl-defun gnosis-edit-update-note (&key id main options answer tags (extra-notes nil) (image nil) (second-image nil))
+(cl-defun gnosis-edit-update-note (&key id main options answer tags (extra-notes nil) (image nil) (second-image nil)
+ ef ff)
"Update note with id value of ID.
ID: Note id
@@ -1161,10 +1162,14 @@ SECOND-IMAGE: Image to display after user-input"
(tags . ,tags)
(extra-notes . ,extra-notes)
(image . ,image)
- (second-image . ,second-image))
+ (second-image . ,second-image)
+ (ef . ',ef)
+ (ff . ,ff))
when value
do (cond ((memq field '(extra-notes image second-image))
(gnosis-update 'extras `(= ,field ,value) `(= id ,id)))
+ ((memq field '(ef ff))
+ (gnosis-update 'review `(= ,field ,value) `(= id ,id)))
((listp value)
(gnosis-update 'notes `(= ,field ',value) `(= id ,id)))
(t (gnosis-update 'notes `(= ,field ,value) `(= id ,id))))))