From 7e94272c954cff5728ee1813b42847205d79ed8f Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 12 Aug 2024 10:14:49 +0100 Subject: [PATCH] feat: add email column to downloadcsv on marks --- apps/dashboard/src/routes/courses/[id]/marks/+page.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte b/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte index d019252d..8182282d 100644 --- a/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte +++ b/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte @@ -103,7 +103,12 @@ isDownloading = true; const exportData = students.map((student) => { - const rowData = { name: student.profile.fullname, Total: 0 }; + const rowData = { + name: student.profile.fullname, + email: student.profile.email, + Total: 0 + }; + const totalPoints = calculateStudentTotal(studentMarksByExerciseId[student.id]); $lessons.forEach((lesson, lessonIndex) => {