From 69c4710e15fc131942b4bec6734e25b8a83acbca Mon Sep 17 00:00:00 2001 From: Eddyyyh <69461843+Eddyyyh@users.noreply.github.com> Date: Fri, 5 May 2023 08:54:37 +1000 Subject: [PATCH] bugfix: fix zid string for sample user login (#8) --- backend/src/student_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/student_data.js b/backend/src/student_data.js index b10ea2a..c322c97 100644 --- a/backend/src/student_data.js +++ b/backend/src/student_data.js @@ -14,7 +14,7 @@ const getStudentIds = (term) => { resolve([]); return; } else { - const zids = stdout.trim().split('\n'); + const zids = stdout.trim().slice(1).split('\n'); resolve([...zids, ...config.TERMS[term].TUTOR_ID_LIST, ...config.TERMS[term].AUDIT_ID_LIST]); return; }