lms-sync 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/apiConnections/mapping.js +14 -1
- package/package.json +1 -1
- package/recordError.log +0 -1463
- package/recordSuccess.log +0 -33
@@ -1232,6 +1232,7 @@ const server = {
|
|
1232
1232
|
let instrcutor = _students[j].faculty_id
|
1233
1233
|
let sections = _students[j].section_name
|
1234
1234
|
|
1235
|
+
|
1235
1236
|
let _inst = instructorApi.find(i => i.faculty_id === instrcutor)
|
1236
1237
|
|
1237
1238
|
|
@@ -1240,7 +1241,6 @@ const server = {
|
|
1240
1241
|
let _section = sectionSeq.find(sec => sec.name === sections)
|
1241
1242
|
|
1242
1243
|
|
1243
|
-
|
1244
1244
|
if (!_inst) {
|
1245
1245
|
continue;
|
1246
1246
|
}
|
@@ -1253,6 +1253,17 @@ const server = {
|
|
1253
1253
|
continue;
|
1254
1254
|
}
|
1255
1255
|
|
1256
|
+
let fGrade = _students[j].final_grade
|
1257
|
+
let rmarks = _students[j].remarks
|
1258
|
+
|
1259
|
+
let totalPoints = 100
|
1260
|
+
let finalG = fGrade
|
1261
|
+
let gradePoints = ((-4.0 / totalPoints) * parseFloat (finalG) + 5.0).toFixed(2)
|
1262
|
+
let graded = false
|
1263
|
+
if (gradePoints){
|
1264
|
+
graded = true
|
1265
|
+
}
|
1266
|
+
let remarks = rmarks.toUpperCase()
|
1256
1267
|
|
1257
1268
|
// return
|
1258
1269
|
let [record, created] = await EnrolledStudents.findOrCreate({
|
@@ -1264,6 +1275,8 @@ const server = {
|
|
1264
1275
|
campusId: campus?._id,
|
1265
1276
|
academicYearId: _acadYear?._id,
|
1266
1277
|
semesterId: _semester?._id,
|
1278
|
+
finalGrade: gradePoints,
|
1279
|
+
remarks,
|
1267
1280
|
createdById,
|
1268
1281
|
modifiedById,
|
1269
1282
|
},
|