Fix not assinging a new uid if already provided
This commit is contained in:
parent
209a6e1fed
commit
53762e9400
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
(defsystem "dev.metalisp.survey"
|
||||
:description "Create questionnaires and analyze the results."
|
||||
:version "0.5.30"
|
||||
:version "0.5.31"
|
||||
:author "Marcus Kammer <marcus.kammer@mailbox.org>"
|
||||
:source-control (:git "https://code.metalisp.dev/marcuskammer/dev.metalisp.survey.git")
|
||||
:licence "MIT"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
(defmethod initialize-instance :after ((q questionnaire) &key)
|
||||
(with-slots (timestamp-created uid data-file survey-uid) q
|
||||
(setf timestamp-created (ml-survey/app:today+now))
|
||||
(setf uid (ml-survey/app:generate-uuid))
|
||||
(or uid (setf uid (ml-survey/app:generate-uuid)))
|
||||
(setf data-file (pathname (format nil "~a~a/~a.lisp"
|
||||
(ml-survey/fileops:ensure-surveys-dir)
|
||||
survey-uid
|
||||
|
|
Loading…
Add table
Reference in a new issue