summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-12 21:12:17 +0200
committerThanos Apollo <[email protected]>2023-12-12 21:12:17 +0200
commit120f940db54fd1664eaed7cc4c6381c42546f031 (patch)
treedcc97efa2bee4506c930d09e8f75e4f16baf8ac0
parent43f231c22a05f2f4acd0b84872859f1771688392 (diff)
Add gnosis--get-name
-rw-r--r--gnosis.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 765e742..565e837 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -62,6 +62,9 @@
(defun gnosis--get-id (table value id)
"Get VALUE for question ID from TABLE."
(caar (gnosis--select table value `(= id ,id))))
+(defun gnosis--get-name (table value name)
+ "From TABLE get VALUE for NAME."
+ (caar (gnosis--select table value `(= name ,name))))
(defun gnosis--display-question (id)
"Display main row for question ID."