Skip to content
Snippets Groups Projects
Commit f3d40e17 authored by Simon Will's avatar Simon Will
Browse files

Don’t add null keys when generating course data

parent 9d89967a
No related branches found
No related tags found
No related merge requests found
Pipeline #590 failed
......@@ -29,9 +29,11 @@
(record (make-hash-table :test #'equal)))
(dolist (key '(first second third fourth))
(let ((record-part (or (funcall key record-parts) "")))
(setf (gethash (getf config (intern (symbol-name key) "KEYWORD")) record)
record-part)))
(let ((record-part (or (funcall key record-parts) ""))
(config-value (getf config (intern (symbol-name key) "KEYWORD"))))
(when value
(setf (gethash config-value record)
record-part))))
(setf record (ensure-matriculation-number-is-integer record))
(setf record (complete-record record))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment