Fix survey function call
This commit is contained in:
parent
66054cddbe
commit
8ec67cd985
1 changed files with 3 additions and 2 deletions
|
@ -3,11 +3,12 @@
|
||||||
(defun survey-uri-p (uri)
|
(defun survey-uri-p (uri)
|
||||||
"Check if the request URI matches the pattern '/survey/<numeric>'"
|
"Check if the request URI matches the pattern '/survey/<numeric>'"
|
||||||
(check-type uri string)
|
(check-type uri string)
|
||||||
(let ((parts (split-uri uri)))
|
(let ((parts (split-uri uri))
|
||||||
|
(survey (make-survey uri)))
|
||||||
(and (= (length parts) 2)
|
(and (= (length parts) 2)
|
||||||
(string= (first parts) "survey")
|
(string= (first parts) "survey")
|
||||||
(every #'digit-char-p (second parts))
|
(every #'digit-char-p (second parts))
|
||||||
(survey-id-p (parse-integer (second parts))))))
|
(funcall survey 'id-p))))
|
||||||
|
|
||||||
(defun survey-uri (request)
|
(defun survey-uri (request)
|
||||||
(let ((uri (request-uri request)))
|
(let ((uri (request-uri request)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue