diff options
author | Thanos Apollo <[email protected]> | 2024-03-08 12:56:51 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-08 12:56:51 +0200 |
commit | 39c13d240bd6f22161df07a7bda7f1ef2d56832a (patch) | |
tree | e5f6c7e7a0d0ff3bc45a324b55520fdaa64529e9 /gnosis.el | |
parent | 3b705cfb4a675e882d48fd98965ceb0803e74df9 (diff) |
[fix] gnosis-edit-update-note: Add assert for suspend
Make sure that suspend value is either 0 or 1
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1403,6 +1403,7 @@ SUSPEND: Suspend note, 0 for unsuspend, 1 for suspend" (cl-assert (listp tags) nil "Tags must be a list of strings") (cl-assert (and (listp ef) (length= ef 3)) nil "ef must be a list of 3 floats") (cl-assert (or (stringp options) (listp options)) nil "Options must be a string, or a list for MCQ") + (cl-assert (or (= suspend 0) (= suspend 1)) nil "Suspend must be either 0 or 1") ;; Construct the update clause for the emacsql update statement. (cl-loop for (field . value) in `((main . ,main) |