Add whitespace

This commit is contained in:
Marcus Kammer 2024-06-02 22:52:47 +02:00
parent 10bc5347ff
commit 00df834718
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -4,13 +4,16 @@
(labels ((survey-fn (action)
(case action
(id (second (split-uri uri)))
(id-p (let ((ids (mapcar #'car (load-response (make-surveys-db-path)))))
(if (member (parse-integer (survey-fn 'id)) ids) t nil)))
(uri-p (let ((parts (split-uri uri)))
(and (= (length parts) 2)
(string= (first parts) "survey")
(every #'digit-char-p (second parts))
(survey-fn 'id-p))))
(properties (first (rest (assoc (parse-integer (survey-fn 'id))
(load-response (make-surveys-db-path)))))))))
#'survey-fn))