Skip to content

Commit

Permalink
chore: Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mathhulk committed Oct 24, 2024
1 parent 4a9b064 commit d294f0c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/backend/src/modules/grade-distribution/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -176,8 +174,6 @@ export const getGradeDistributionByCourse = async (

const distribution = getDistribution(distributions);

console.log("distribution", distribution);

return {
average: getAverageGrade(distribution),
distribution,
Expand All @@ -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,
Expand Down

0 comments on commit d294f0c

Please sign in to comment.