Feat/evaluation #1

Merged
robin merged 15 commits from feat/evaluation into main 2026-08-03 16:46:56 +00:00
Showing only changes of commit 95e09c6d21 - Show all commits
@@ -31,7 +31,9 @@ function getCategories(categoriesField: any): string[] {
type TimeMap = Record<string, number>
export default async function EvaluationPage({ params }: PageProps) {
let times: TimeMap = {};
let times: TimeMap = {
total: 0
};
// get all params
const resolvedParams = await params;
@@ -77,6 +79,7 @@ export default async function EvaluationPage({ params }: PageProps) {
const categories = getCategories(event.categories);
categories.forEach((cat) => {
times["total"] = (times["total"] || 0) + durationInMinutes
times[cat] = (times[cat] || 0) + durationInMinutes
})
})