removing some cruft
This commit is contained in:
parent
5cc601e577
commit
3d682ee76b
|
@ -13,26 +13,13 @@
|
||||||
|
|
||||||
(in-package :tfcserver)
|
(in-package :tfcserver)
|
||||||
|
|
||||||
(defvar *last*)
|
|
||||||
(defvar *last-data*)
|
|
||||||
(defvar *last-list-data*)
|
|
||||||
(defvar *stream*)
|
|
||||||
(defvar *auth-token* "Basic Y2hyaXM6MlZIZUd4ZUNeWmY5S3FGS15HQFB0IXp1MnFeNkBi")
|
|
||||||
|
|
||||||
(defvar *server*)
|
(defvar *server*)
|
||||||
|
|
||||||
(defun start-server (port)
|
(defun start-server (port)
|
||||||
(setq *server*
|
(setq *server*
|
||||||
(hunchentoot:start
|
(hunchentoot:start
|
||||||
(make-instance 'hunchentoot:easy-acceptor
|
(make-instance 'hunchentoot:easy-acceptor
|
||||||
:port port))))
|
:port port))))
|
||||||
|
|
||||||
;; (defun setup-for-nextcloud-tables (data-list)
|
|
||||||
;; "moving the list into a form that makes sense for
|
|
||||||
;; Nextcloud tables"
|
|
||||||
;; (setf idk (car (assoc "Student Name" data-list :test 'string=)
|
|
||||||
;; "value")))
|
|
||||||
|
|
||||||
(defparameter *mail-css*
|
(defparameter *mail-css*
|
||||||
'((table :border-collapse "collapse" :width "100%")
|
'((table :border-collapse "collapse" :width "100%")
|
||||||
(("th," td) :padding "8px")
|
(("th," td) :padding "8px")
|
||||||
|
@ -313,18 +300,18 @@ with the image attached to us"
|
||||||
(defun mail-health-form (form attachment)
|
(defun mail-health-form (form attachment)
|
||||||
"Takes the form as an alist and sends a table formatted email
|
"Takes the form as an alist and sends a table formatted email
|
||||||
with the image attached"
|
with the image attached"
|
||||||
(let* ((first-name (serapeum:trim-whitespace
|
(let* ((first-name (trim-whitespace
|
||||||
(cdr (assoc "firstname" form
|
(cdr (assoc "firstname" form
|
||||||
:test 'string=))))
|
:test 'string=))))
|
||||||
(last-name (serapeum:trim-whitespace
|
(last-name (trim-whitespace
|
||||||
(cdr (assoc "lastname" form
|
(cdr (assoc "lastname" form
|
||||||
:test 'string=))))
|
:test 'string=))))
|
||||||
(parent-name (concatenate 'string
|
(parent-name (concatenate 'string
|
||||||
(serapeum:trim-whitespace
|
(trim-whitespace
|
||||||
(cdr (assoc "parentfirstname" form
|
(cdr (assoc "parentfirstname" form
|
||||||
:test 'string=)))
|
:test 'string=)))
|
||||||
" "
|
" "
|
||||||
(serapeum:trim-whitespace
|
(trim-whitespace
|
||||||
(cdr (assoc "parentlastname" form
|
(cdr (assoc "parentlastname" form
|
||||||
:test 'string=))))))
|
:test 'string=))))))
|
||||||
(not (cl-smtp:send-email
|
(not (cl-smtp:send-email
|
||||||
|
|
Loading…
Reference in a new issue