Fix thead loop

This commit is contained in:
Marcus Kammer 2024-06-22 17:40:10 +02:00
parent b39855393d
commit 11ea452104
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -17,12 +17,11 @@
(:caption "Questionnaire results table") (:caption "Questionnaire results table")
(:thead (:thead
(:tr (:tr
(loop for i from 1 to count-answers do (loop for i from 1 below count-answers do
(if (= i count-answers) (:th :scope "col" (format nil "Q ~a" i)))
(:th :scope "col" "SUS Score") (:th :scope "col" "SUS Score")))
(:th :scope "col" (format nil "Q ~a" i))))) (:tbody
(:tbody (loop for result in results do
(loop for result in results do (:tr
(:tr (loop for answer in result do
(loop for answer in result do (:td answer)))))))))))
(:td answer))))))))))))