summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 2a71646..451eeca 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -90,7 +90,7 @@ Example:
(gnosis-update 'notes '(= main \"NEW VALUE\") '(= id 12))"
(emacsql gnosis-db `[:update ,table :set ,value :where ,where]))
-(defun gnosis-get (value table &optional restrictions)
+(cl-defun gnosis-get (value table &optional (restrictions '1=1))
"Get VALUE from TABLE, optionally with where RESTRICTIONS."
(caar (gnosis--select value table restrictions)))