@@ -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