Skip to content

Commit

Permalink
refactor(Classroom Monitor): Remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan committed Oct 26, 2023
1 parent fd8376d commit 95fb346
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class StudentProgressComponent implements OnInit {

private updateTeam(workgroupId: number): void {
const location = this.getCurrentNodeForWorkgroupId(workgroupId);
const completion = this.getStudentProjectCompletion(workgroupId);
const completion = this.classroomStatusService.getStudentProjectCompletion(workgroupId);
const score = this.getStudentTotalScore(workgroupId);
let maxScore = this.classroomStatusService.getMaxScoreForWorkgroupId(workgroupId);
maxScore = maxScore ? maxScore : 0;
Expand All @@ -95,15 +95,6 @@ export class StudentProgressComponent implements OnInit {
);
}

/**
* Get project completion data for the given workgroup (only include nodes with student work)
* @param workgroupId the workgroup id
* @return object with completed, total, and percent completed (integer between 0 and 100)
*/
private getStudentProjectCompletion(workgroupId: number): any {
return this.classroomStatusService.getStudentProjectCompletion(workgroupId);
}

private getStudentTotalScore(workgroupId: number): number {
return this.dataService.getTotalScoreByWorkgroupId(workgroupId);
}
Expand Down

0 comments on commit 95fb346

Please sign in to comment.