Reformat code
This commit is contained in:
parent
83a236d0da
commit
5ddc87022c
2 changed files with 10 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
(defsystem "dev.metalisp.survey"
|
||||
:description "Create questionnaires and analyze the results."
|
||||
:version "0.5.32"
|
||||
:version "0.5.33"
|
||||
:author "Marcus Kammer <marcus.kammer@mailbox.org>"
|
||||
:source-control (:git "https://code.metalisp.dev/marcuskammer/dev.metalisp.survey.git")
|
||||
:licence "MIT"
|
||||
|
|
|
@ -30,9 +30,12 @@
|
|||
|
||||
(defmethod initialize-instance :after ((q questionnaire) &key)
|
||||
(with-slots (timestamp-created uid data-file survey-uid) q
|
||||
(or timestamp-created (setf timestamp-created (ml-survey/app:today+now)))
|
||||
(or uid (setf uid (ml-survey/app:generate-uuid)))
|
||||
(or data-file (setf data-file (pathname (format nil "~a~a/~a.lisp"
|
||||
(or timestamp-created
|
||||
(setf timestamp-created (ml-survey/app:today+now)))
|
||||
(or uid
|
||||
(setf uid (ml-survey/app:generate-uuid)))
|
||||
(or data-file
|
||||
(setf data-file (pathname (format nil "~a~a/~a.lisp"
|
||||
(ml-survey/fileops:ensure-surveys-dir)
|
||||
survey-uid
|
||||
uid))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue