Updated the Assignment View to ignore practice questions
This commit is contained in:
@@ -111,7 +111,7 @@ export default function AssignmentView({isOpen, users, assignment, onClose}: Pro
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
stats.forEach((x) => {
|
stats.filter(x => !x.isPractice).forEach((x) => {
|
||||||
scores[x.module!] = {
|
scores[x.module!] = {
|
||||||
total: scores[x.module!].total + x.score.total,
|
total: scores[x.module!].total + x.score.total,
|
||||||
correct: scores[x.module!].correct + x.score.correct,
|
correct: scores[x.module!].correct + x.score.correct,
|
||||||
|
|||||||
Reference in New Issue
Block a user