Skip to content

Commit 482eb1b

Browse files
Merge pull request #96 from transform1234/develop
Develop to PROD
2 parents 9287fe7 + 7d6b5d2 commit 482eb1b

File tree

4 files changed

+43
-39
lines changed

4 files changed

+43
-39
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
name,username,email,mobile,gender,dateOfBirth,board,password,status,className,religion,school_udise,caste,annual_income,mother_education,father_education,mother_occupation,father_occupation,No_of_siblings,promotion,state,district,block,promotion
2-
Ankushkumar Maherwal,696969696969,,9999999999,Male,1991-11-02,West Bengal,696969696969 ,True,Class 7,Hindu,12345678,General,668,,,,,,,Maharashtra,Pune,Pune,,
1+
name,username,email,mobile,gender,dateOfBirth,board,password,status,className,religion,school_udise,caste,annual_income,mother_education,father_education,mother_occupation,father_occupation,No_of_siblings,promotion,state,district,block,promotion,academicYear
2+
Ankushkumar Maherwal,696969696969,,9999999999,Male,1991-11-02,West Bengal,696969696969 ,True,Class 7,Hindu,12345678,General,668,,,,,,,Maharashtra,Pune,Pune,,,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Name,Email Id,Mobile,Gender,DoB,board,Status,Classes taught,School Udise,Educational Qualification,Current role,Nature of appointment,Appointed Postname,Total Experience in teaching,Total experience as Head Teacher,Core subject taught,Attended In service teacher training,Last training attended (Topic),Last training attended (Year),Trained in use of computer & digital teaching
2-
Ankushkumar Maherwal,,9878767678,Male,1992-05-12,Maharashtra,True,Secondary,123456789,Graduation,Teacher,Regular,TGTCBZ,2_5yrs,2_5yrs,Science,,,,
1+
Name,Email Id,Mobile,Gender,DoB,board,Status,Classes taught,School Udise,Educational Qualification,Current role,Nature of appointment,Appointed Postname,Total Experience in teaching,Total experience as Head Teacher,Core subject taught,Attended In service teacher training,Last training attended (Topic),Last training attended (Year),Trained in use of computer & digital teaching,academicYear
2+
Ankushkumar Maherwal,,9878767678,Male,1992-05-12,Maharashtra,True,Secondary,123456789,Graduation,Teacher,Regular,TGTCBZ,2_5yrs,2_5yrs,Science,,,,,,

packages/admin/src/components/StudentCSV.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function CSVImportForm() {
8282
fatherOccupation: studentData["father_occupation"] || null,
8383
noOfSiblings: studentData["No_of_siblings"] || 0,
8484
promotion: studentData["promotion"] || "",
85+
academicYear: studentData["academicYear"] || null,
8586
};
8687

8788
requestData.students.push(studentObject);

packages/admin/src/components/TeacherCSV.jsx

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,41 +79,44 @@ function CSVImportForm() {
7979
for (let i = startIndex; i < endIndex; i++) {
8080
const teacherData = csvData[i];
8181
if (teacherData["Name"] && teacherData["Name"].trim() !== "") {
82-
const teacherObject = {
83-
name: teacherData["Name"] || null,
84-
username: teacherData["username"] || "",
85-
email: teacherData["Email Id"] || null,
86-
mobile: teacherData["Mobile"] || "",
87-
gender: teacherData["Gender"] || "",
88-
dateOfBirth: teacherData["DoB"] || "",
89-
board: teacherData["board"] || "",
90-
password: null,
91-
status: teacherData["Status"] || null,
92-
groups: [],
93-
educationalQualification:
94-
teacherData["Educational Qualification"] || null,
95-
schoolUdise: teacherData["School Udise"] || "",
96-
currentRole: teacherData["Current role"] || null,
97-
natureOfAppointment: teacherData["Nature of appointment"] || null,
98-
appointedPost: teacherData["Appointed Postname"] || null,
99-
totalTeachingExperience:
100-
teacherData["Total Experience in teaching"] || null,
101-
totalHeadteacherExperience:
102-
teacherData["Total experience as Head Teacher"] || null,
103-
classesTaught: teacherData["Classes taught"] || null,
104-
coreSubjectTaught: teacherData["Core subject taught"].replace("|", ",") || null,
105-
attendedInserviceTraining:
106-
teacherData["Attended In service teacher training"] || null,
107-
lastTrainingAttendedTopic:
108-
teacherData["Last training attended (Topic)"] || null,
109-
lastTrainingAttendedYear:
110-
teacherData["Last training attended (Year)"] || null,
111-
trainedInComputerDigitalteaching:
112-
teacherData["Trained in use of computer & digital teaching"] || null,
113-
};
114-
115-
requestData.teachers.push(teacherObject);
116-
}
82+
const teacherObject = {
83+
name: teacherData["Name"] || null,
84+
username: teacherData["username"] || "",
85+
email: teacherData["Email Id"] || null,
86+
mobile: teacherData["Mobile"] || "",
87+
gender: teacherData["Gender"] || "",
88+
dateOfBirth: teacherData["DoB"] || "",
89+
board: teacherData["board"] || "",
90+
password: null,
91+
status: teacherData["Status"] || null,
92+
groups: [],
93+
educationalQualification:
94+
teacherData["Educational Qualification"] || null,
95+
schoolUdise: teacherData["School Udise"] || "",
96+
currentRole: teacherData["Current role"] || null,
97+
natureOfAppointment: teacherData["Nature of appointment"] || null,
98+
appointedPost: teacherData["Appointed Postname"] || null,
99+
totalTeachingExperience:
100+
teacherData["Total Experience in teaching"] || null,
101+
totalHeadteacherExperience:
102+
teacherData["Total experience as Head Teacher"] || null,
103+
classesTaught: teacherData["Classes taught"] || null,
104+
coreSubjectTaught:
105+
teacherData["Core subject taught"].replace("|", ",") || null,
106+
attendedInserviceTraining:
107+
teacherData["Attended In service teacher training"] || null,
108+
lastTrainingAttendedTopic:
109+
teacherData["Last training attended (Topic)"] || null,
110+
lastTrainingAttendedYear:
111+
teacherData["Last training attended (Year)"] || null,
112+
trainedInComputerDigitalteaching:
113+
teacherData["Trained in use of computer & digital teaching"] ||
114+
null,
115+
academicYear: teacherData["academicYear"] || null,
116+
};
117+
118+
requestData.teachers.push(teacherObject);
119+
}
117120
}
118121

119122
try {

0 commit comments

Comments
 (0)