05a1b85801
Updated `iterateOverDashboardTable.js` to include student name and ID in log output. Added functions in `evaluateStartPakket.js` to fetch student name and ID from specified selectors. Adjusted `.gitignore` to exclude `.idea` directory.
10 lines
393 B
JavaScript
10 lines
393 B
JavaScript
function saveResultsToExcel(data, filename) {
|
|
const workbook = xlsx.utils.book_new(); // Create a new workbook
|
|
const worksheet = xlsx.utils.json_to_sheet(data); // Convert data to worksheet
|
|
xlsx.utils.book_append_sheet(workbook, worksheet, "Results"); // Add worksheet to workbook
|
|
|
|
// Write workbook to file
|
|
xlsx.writeFile(workbook, filename);
|
|
}
|
|
|
|
module.exports = saveResultsToExcel; |