From 5521b25a29aba02e7b4cd58b3df1f399a8f9530c Mon Sep 17 00:00:00 2001 From: Austin Jackson Date: Sat, 25 Feb 2023 06:33:48 -0600 Subject: [PATCH] try to see what affect this has on the GPA issue --- mock-database/src/_mockDatabase.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mock-database/src/_mockDatabase.ts b/mock-database/src/_mockDatabase.ts index 061be651..c5f28c1c 100644 --- a/mock-database/src/_mockDatabase.ts +++ b/mock-database/src/_mockDatabase.ts @@ -177,8 +177,9 @@ export async function whenUploadQueueAdded(record: GradeDistributionCSVRow) { * - AVG of 0 (sus) * - totalEnrolled of 0 */ + //(record.AVG_GPA !== null) // TODO: use `GDR.safeToIncludeGPA(record)` - if (record.AVG_GPA !== null) { + if (GDR.safeToIncludeGPA(record) && record.AVG_GPA !== null) { // include in GPA GPA.include(courseData.GPA, record.AVG_GPA); @@ -237,7 +238,7 @@ export async function whenUploadQueueAdded(record: GradeDistributionCSVRow) { if (instructorExists) { // check if record has missing AVG // TODO: use `GDR.safeToIncludeGPA(record)` - if (record.AVG_GPA !== null) { + if (GDR.safeToIncludeGPA(record) && record.AVG_GPA !== null) { // include in GPA GPA.include(instructorData.GPA, record.AVG_GPA);