Updated the Assignment View to ignore practice questions

This commit is contained in:
Tiago Ribeiro
2024-11-15 16:02:43 +00:00
parent c067e26e0c
commit d564d86feb

View File

@@ -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!] = {
total: scores[x.module!].total + x.score.total,
correct: scores[x.module!].correct + x.score.correct,