sisa-crawl/saveResultsToExcel.js
bdaneels 05a1b85801 Enhance logging with student details in evaluation
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.
2024-12-03 14:16:44 +01:00

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;