From 0e275a5bc6c4a16c294984c89515104f2247864a Mon Sep 17 00:00:00 2001 From: bdaneels Date: Tue, 3 Dec 2024 16:39:11 +0100 Subject: [PATCH] First Beta Version complete 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. --- iterateOverDashboardTable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iterateOverDashboardTable.js b/iterateOverDashboardTable.js index 81097dd..7eec2e1 100644 --- a/iterateOverDashboardTable.js +++ b/iterateOverDashboardTable.js @@ -76,7 +76,11 @@ async function iterateOverDashboardTable() { `${tableBodySelector} tr span[title="AA-rapport"] a` ); - if ((i + 1) % 10 === 0) {await wait(10000)} + if ((i + 1) % 10 === 0) { + console.log('Simulating break, waiting 10 seconds to stay under the radar :)') + await wait(10000) + + } const [newPagePromise] = await Promise.all([ new Promise((resolve) => @@ -115,6 +119,7 @@ async function iterateOverDashboardTable() { IsCollapsed: "Error", IsCollapsedKeuze: "Error", IsCollapsedMain: "Error", + ErrorStr: error.message, }); } finally {