Merge, do not push to develop yet, Listening.tsx is not updated
This commit is contained in:
@@ -23,8 +23,9 @@ import { withIronSessionSsr } from "iron-session/next";
|
||||
import { checkAccess, doesEntityAllow } from "@/utils/permissions";
|
||||
import { mapBy, redirect, serialize } from "@/utils";
|
||||
import { getAssignment } from "@/utils/assignments.be";
|
||||
import { getEntityUsers, getUsers } from "@/utils/users.be";
|
||||
import { getEntityWithRoles } from "@/utils/entities.be";
|
||||
import { getEntitiesUsers, getEntityUsers, getUsers } from "@/utils/users.be";
|
||||
import { getEntitiesWithRoles, getEntityWithRoles } from "@/utils/entities.be";
|
||||
import { getGroups, getGroupsByEntities, getGroupsByEntity } from "@/utils/groups.be";
|
||||
import { sessionOptions } from "@/lib/session";
|
||||
import { EntityWithRoles } from "@/interfaces/entity";
|
||||
import Head from "next/head";
|
||||
@@ -155,7 +156,7 @@ export default function AssignmentView({ user, users, entity, assignment }: Prop
|
||||
},
|
||||
};
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user