Skip to content

Commit

Permalink
fix recipent data for whole class
Browse files Browse the repository at this point in the history
  • Loading branch information
ozer550 committed Jan 3, 2025
1 parent 7944be1 commit 71226bd
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@
'getExamStatusTally',
'getLearnersForExam',
'getRecipientNamesForExam',
'getGroupNames',
]),
...mapState('classSummary', { className: 'name' }),
practiceQuizzesExist() {
Expand Down Expand Up @@ -446,13 +447,14 @@
exam.groups.includes(recipientsFilter) || exam.learner_ids.includes(recipientsFilter),
);
}
return selectedExams.map(quiz => {
const learnersForQuiz = this.getLearnersForExam(quiz);
quiz.tally = this.getExamStatusTally(quiz.id, learnersForQuiz);
quiz.avgScore = this.getExamAvgScore(quiz.id, learnersForQuiz);
quiz.recipientNames = this.getRecipientNamesForExam(quiz);
quiz.totalLearners = this.getLearnersForExam(quiz).length;
quiz.recipientNames = this.getRecipientNamesForExam(quiz);
quiz.hasAssignments = quiz.assignments.length > 0;
quiz.groupNames = this.getGroupNames(quiz.groups);
return quiz;
});
},
Expand Down Expand Up @@ -526,9 +528,9 @@
exportCSV() {
const columns = [
...csvFields.title(),
...csvFields.recipients(this.className),
...csvFields.avgScore(),
...csvFields.allLearners('totalLearners'),
...csvFields.recipients(this.className),
...csvFields.tally(),
];
Expand Down

0 comments on commit 71226bd

Please sign in to comment.