Skip to content

Commit c1b54a6

Browse files
committed
export mastery
1 parent 7539ac2 commit c1b54a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/get-users.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const run = async () => {
1212
const accounts = JSON.parse(fs.readFileSync(file)).users;
1313

1414
let teachers = 'email,first,last,schoolName,phoneNumber,postCode,teacherCode,uniqueId\n';
15-
let students = 'email,first,last,gender,level,birthYear,birthMonth,schoolName,teacherCode,guardianEmail,uniqueId,studentReference,schoolEmail,studentPanelConsidered,profileComplete,pupilPremium\n';
15+
let students = 'email,first,last,gender,level,birthYear,birthMonth,schoolName,teacherCode,guardianEmail,uniqueId,studentReference,schoolEmail,studentPanelConsidered,profileComplete,pupilPremium,mastery\n';
1616

1717
for (let a of accounts) {
1818
const u = users[a.localId];
1919
if (!u) continue;
2020
if (u.code) {
2121
teachers += `"${a.email}","${u.first}","${u.last}","${u.schoolName||''}","${u.phoneNumber||''}","${u.postCode||''}","${u.code||''}","${a.localId||''}"\n`;
2222
} else {
23-
students += `"${a.email}","${u.first}","${u.last}","${u.gender||''}","${u.level||''}","${u.birthYear||''}","${u.birthMonth||''}","${u.schoolName||''}","${u.teacherCode||''}","${u.guardianEmail||''}","${a.localId||''}","${u.userReference||''}","${u.schoolEmail||''}","${u.studentPanelConsidered||''}","${isProfileComplete(u) ? 1 : 0}","${u.pupilPremium||''}"\n`;
23+
students += `"${a.email}","${u.first}","${u.last}","${u.gender||''}","${u.level||''}","${u.birthYear||''}","${u.birthMonth||''}","${u.schoolName||''}","${u.teacherCode||''}","${u.guardianEmail||''}","${a.localId||''}","${u.userReference||''}","${u.schoolEmail||''}","${u.studentPanelConsidered||''}","${isProfileComplete(u) ? 1 : 0}","${u.pupilPremium||''}","${u.source==='mastery' ? '1' : '0'}"\n`;
2424
}
2525
}
2626

0 commit comments

Comments
 (0)