From d294f0c9bb0cc6f1462c81ff03e47d0ec5b2c531 Mon Sep 17 00:00:00 2001 From: Matthew Rowland Date: Thu, 24 Oct 2024 15:49:31 -0700 Subject: [PATCH] chore: Remove unnecessary comments --- apps/backend/src/modules/grade-distribution/controller.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/backend/src/modules/grade-distribution/controller.ts b/apps/backend/src/modules/grade-distribution/controller.ts index 4d43d193d..b871fbea3 100644 --- a/apps/backend/src/modules/grade-distribution/controller.ts +++ b/apps/backend/src/modules/grade-distribution/controller.ts @@ -142,8 +142,6 @@ export const points: { [key: string]: number } = { export const getAverageGrade = (distribution: Grade[]) => { const total = distribution.reduce((acc, { letter, count }) => { - console.log("letter", letter); - if (points[letter]) return acc + count; // Ignore letters not included in grade point average @@ -176,8 +174,6 @@ export const getGradeDistributionByCourse = async ( const distribution = getDistribution(distributions); - console.log("distribution", distribution); - return { average: getAverageGrade(distribution), distribution, @@ -193,8 +189,6 @@ export const getGradeDistributionByClass = async ( ) => { const name = `${year} ${semester}`; - console.log(subject, courseNumber, number, name); - const section = await SectionModel.findOne({ "class.course.subjectArea.code": subject, "class.course.catalogNumber.formatted": courseNumber,